How samrantariq/background-hidden-camera works
This Android app captures a front- or rear-camera image without presenting a camera preview, using a foreground service, then processes and stores the image for later display in the activity. The README describes the user flow and image handling; source excerpts were not provided, so internal calls beyond those documented are omitted. Paths identify the relevant Java files from the tree.
Main entry points: CameraView.java Camera view · MainActivity.java Main activity · GetBackCoreService.java Foreground service
Components 12
App interface
- Main activity
app/src/main/java/com/example/backgroundhiddencamera/MainActivity.java
Capture runtime
- Foreground service
app/src/main/java/com/example/backgroundhiddencamera/GetBackCoreService.java - Camera view
app/src/main/java/com/example/backgroundhiddencamera/CameraView.java
Capture support
- Capture features
app/src/main/java/com/example/backgroundhiddencamera/GetBackFeatures.java - State flags
app/src/main/java/com/example/backgroundhiddencamera/GetBackStateFlags.java - Constants
app/src/main/java/com/example/backgroundhiddencamera/Constants.java - Front capture callback
app/src/main/java/com/example/backgroundhiddencamera/IFrontCaptureCallback.java - Utilities
app/src/main/java/com/example/backgroundhiddencamera/Utils.java
Image handling
- Image storage
- Image processing
app/src/main/java/com/example/backgroundhiddencamera/CameraView.java
Other components
- User
- Device camera
Connections 7
- User → Main activity: opens app
README.md - Main activity → Foreground service: starts service
README.md - Foreground service → Camera view: captures image
README.md - Camera view → Device camera: uses camera
README.md - Camera view → Image processing: processes image
README.md - Image processing → Image storage: writes image
README.md - Image storage → Main activity: displays saved image
README.md