Simple Android prototype that captures periodic screenshots while specific apps are in the foreground. Saves screenshots locally to the app's pictures folder.
Important notes:
- This is a prototype for Android only.
- You must grant Usage Access (Settings → Usage Access) for the app to detect the foreground app.
- You must grant screen-capture permission when prompted (the app will open a system dialog).
- The app saves PNGs to the app's external files directory under
Pictures/screenshot-tracker.
How to build and run:
- Open the folder
android-screenshot-trackerin Android Studio. - Build and install on a device (emulator may not support MediaProjection reliably).
- Open the app, enter comma-separated package names to track (or leave empty to capture always), tap Start.
- Grant Usage Access and Screen Capture when prompted.
This is an initial prototype — it demonstrates the MediaProjection + foreground service + usage tracking flow.