Can I use Android Camera in service without preview?
I have create a application in Android that using a camera I can measure out the distance between user's face to the phone screen. Problem description: Now I want to make it running background so that the feature is available while I am using other applications. It means I should open camera in service without preview, and process it in service. What I did yet: I referred some questions here How to record video from background of application : Android How to use Android Camera in Background? Taking picture from camera without preview API level 16 My Service File import android.app.Service;