Sometimes I use my phone to record in my shirt or jacket pocket, despite setting the display and buttons to inactive I find that randomly something gets pressed and consequently it stops recording. My suggestion is to FORCE the camera to stay recording unless a pin or a combination of buttons.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sometimes I use my phone to record in my shirt or jacket pocket, despite setting the display and buttons to inactive I find that randomly something gets pressed and consequently it stops recording. My suggestion is to FORCE the camera to stay recording unless a pin or a combination of buttons.