some apps like Secret Video recorder can record a video even when the display is turned off. Does anyone know how this is possible? until now i only tried to record with MediaRecorder and when the screen is turned off, the video will show just black. Should i use another method or what's the trick?
Asked
Active
Viewed 3,513 times
0
-
2Use a [Service](https://developer.android.com/guide/components/services.html). Checkout [this question](http://stackoverflow.com/questions/26397382/android-app-video-recording-when-screen-off) for more informations. – Bona Fide Jun 24 '16 at 08:49
-
i do use a service – Ginso Jun 24 '16 at 10:49
-
Did you check the linked question. There is a code example how to do what you want. – Bona Fide Jun 24 '16 at 10:56