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:
I think that's because of dangerous permission, but there are many apps available on PlayStore with these features.
Any suggestions will be helpful :)