Monica Negapatan
Monica Negapatan

Reputation: 251

Use the camera of Android device for background of the activity

Since I was having a hard time using the Augmented Reality Example of AndEngine. I thought of doing it my own way. I want to access my Android device's camera and use it as a background in my activity. It still is like an augmented reality. I will be adding sprites later on. What will be the code for the JAVA and XML? Are there any changes in the manifest? THANK YOU!

Upvotes: 4

Views: 3799

Answers (2)

mrYogi
mrYogi

Reputation: 992

you have to use camera background(tutorial here) and put sprites with help of some rendering library.I use Jpct-ae ,which is very easy to integrate and have a great forum. and for more augmented reality effect you can apply sensor values to sprites ques here

Upvotes: 3

Anup Cowkur
Anup Cowkur

Reputation: 20563

You'll have to use camera control API's along with something called a surfaceView to do wat you need. Here are resources to get you started:

http://mobile.tutsplus.com/tutorials/android/android_augmented-reality/ http://www.devx.com/wireless/Article/42482 http://developer.android.com/training/camera/cameradirect.html http://developer.android.com/reference/android/view/SurfaceView.html

good luck!

Upvotes: 1

Related Questions