3

I tried few codes from here :

How to capture an image in background without using the camera application

and this

Android Camera API Tutorial.

This question may seem duplicated, but I really want to know that can this be done over API level 21?

Thanks in advance.

TeaAge
  • 152
  • 1
  • 16
srv242
  • 105
  • 10
  • Google says it is depricated [check here](https://developer.android.com/reference/android/hardware/Camera.html) but they are using it [here](https://developer.android.com/guide/topics/media/camera.html) I am really confused. Really need help. – srv242 Aug 12 '16 at 06:00

1 Answers1

0

According to android.developer.com, no.

https://developer.android.com/reference/android/hardware/Camera.html

"Important: Call startPreview() to start updating the preview surface. Preview must be started before you can take a picture."

Alex Brock
  • 36
  • 2
  • I've read that earlier and was trying to hack something out of it. But as it seems it is not allowing me what ever I try. Thanks by the way. – srv242 Aug 14 '16 at 20:05