3

I'm trying to build a security app (on lock screen when user enter wrong password, then the app would capture the photo of that person)!

The app is capturing image perfect on wrong password, but the issue is when the app is in a kill or background state, then the camera is not capturing any image. The service is also running in background. Please let me know if any solution exist. Thanks in advance!

Sometimes the following dialog appear when I immediately open the app by entering correct password:
Permission Dialogbox

I think that's because of dangerous permission, but there are many apps available on PlayStore with these features.

Any suggestions will be helpful :)

Omar Shawky
  • 1,242
  • 1
  • 12
  • 25
Arbaz_Ali
  • 53
  • 10
  • Can you please share the code where you are accessing the camera in service, and also share the permissions which you are asking on run time. Also share your android version. – Faizan Ahmad Oct 25 '21 at 07:37
  • I used the following link for help: https://stackoverflow.com/questions/21752637/how-to-capture-an-image-in-background-without-using-the-camera-application – Arbaz_Ali Oct 25 '21 at 16:22
  • found any solution so far ? – Ahmad Oct 17 '22 at 22:23

0 Answers0