blackbox
blackbox is the android application to take video records while driving
- recording normal videos into today folder with start/stop button and auto start function
- when event button touched, make separate video with multiple camera snapshots, event video file contains GPS info in file name
- provides small monitor screen
- show car speed, and direction
- remove old normal video recording automatically if remaining space is small
- provides big home widget for easy launch
Screenshots and How to operate
Main Screen
- Display event record counts
- Display current date/time
- Display preview screen
- Display Compass
- Display current speed in Kilometer
- Start/Stop recording button
- Emergency Recoding button (with audio)
- Pause button
- Exit button
Home Widget
- Display event record counts (if none shows "ready")
- Display time in every 30 minutes
- Use to load application quickly
Permission Required
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
Comments
Coded by
- Woncherl Ha - [email protected]
What I learned in this application
- Google GoogleApiClient
- onKeyDown : to accept bluetooth remote control
- AsyncTask : to merge mp4 files in separate task (normal saving and event saving) while recording
- SoundPool : to beep in some activities
- FragmentCompat.OnRequestPermissionsResultCallback camera.open, release power cable connection status
- MediaRecorder : recording, MEDIA_RECORDER_INFO_NEXT_OUTPUT_FILE_STARTED
- CameraDevice : supports MediaRecorder, Preview Screen, Screen shot simultaniously
- OBDII : access car bluetooth device
Updates / Changes
- 2021.05.05 : androidx applied, capture imageshot
- 2019.02.09 : README.md fully revised
Issues not fixed yet
- Unexpected shut down sometime (untracable), sorry :-p