0

How to create camera as background service which should be run in other than main thread. When am trying to run through thread handler getting crashed due to windgowmanager which required UI thread. How can i resolve this issue

Santhosh M
  • 21
  • 3
  • post the code where you are trying to complete this action – beastlyCoder Jul 02 '20 at 04:10
  • Do you want to take a photo without the user knowing? If you show the camera's UI you have to run it from the main UI thread. – Nikos Hidalgo Jul 02 '20 at 06:28
  • @NikosHidalgo yes i want to take a photo without the user knowing but that should not run on mainthread. Do you have any references for that. – Santhosh M Jul 03 '20 at 02:26
  • not sure whether that works but I remember seeing this example in the past: https://github.com/botyourbusiness/android-camera2-secret-picture-taker – Nikos Hidalgo Jul 03 '20 at 18:32

0 Answers0