4

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!

Monica Negapatan
  • 251
  • 1
  • 14
  • 29
  • I think your question should be more concrete, start with reading camera tutorial http://developer.android.com/guide/topics/media/camera.html – marwinXXII Oct 06 '12 at 13:45

2 Answers2

3

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

Community
  • 1
  • 1
mrYogi
  • 992
  • 2
  • 9
  • 29
1

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!

Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84