I tried few codes from here :
How to capture an image in background without using the camera application
and this
This question may seem duplicated, but I really want to know that can this be done over API level 21?
Thanks in advance.
I tried few codes from here :
How to capture an image in background without using the camera application
and this
This question may seem duplicated, but I really want to know that can this be done over API level 21?
Thanks in advance.
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."