Record Videos in the Background of Navigation App like Maps While Driving
There is a number of dash camera applications out there, but all of them take up entire screen that most drivers need for navigation, Uber or other applications that provide helpful on-screen information during the commute. The idea behind Dash Cam Pro - Record Voyage Video is to create a minimally-intrusive on-screen widget, that will leave the major part of the screen to any other application the driver chooses to use.
The way application works is the following:
1. User starts the app
2. Permissions are checked
3. Navigation app is started in background
4. Videos of specified length start creating in the background
This service continuously records video in pieces of specified length in the background, using the rear (primary) camera, and saves them in dedicated application directory. Once the directory size reaches specified quota, the videos get rotated (oldest one gets deleted to create space for a new one).
When a new recording starts, we save the current and previous recording filenames in the database. We need this so that when users select "Save recording" we will mark the videos as "starred", so that they are not deleted during rotation.