Clicker is an Android application that provides a floating overlay system to automate periodic click events on other applications. This is achieved using Android's Overlay and Accessibility APIs.
- Grant Overlay Permission: This allows the app to draw the floating controls over other apps. Open the app and click "1. Grant Overlay Permission".
- Set Interval: Enter the desired click interval in milliseconds (minimum 150ms) and click "Save Settings".
- Enable Accessibility Service: Click "2. Enable Accessibility Service" and toggle the "Clicker" service to ON.
- Automatic Start: Once the service is enabled, two overlays will appear:
- Target Overlay (White Circle): Represents the location where the click will happen. Drag it to your desired target.
- Control Overlay (Pink Button): Displays "Start Clicker" or "Stop Clicker". Tap this to toggle the periodic clicking.
- Perform Clicking: Position the Target Overlay and tap the pink "Start Clicker" button. The app will simulate clicks at that location at your defined interval.
- Stop Service: To completely remove the overlays, go back to Accessibility settings and turn the "Clicker" service OFF.
- MainActivity: Handles permission requests and interval configuration.
- ClickAccessibilityService: The core engine. It manages the connection and executes the actual click gestures using the
dispatchGestureAPI. - FloatingService: A foreground service that manages the two-overlay system, handling their visibility, positioning, and the periodic click timer.
SYSTEM_ALERT_WINDOW: To draw the target and control overlays over other apps.BIND_ACCESSIBILITY_SERVICE: To simulate touch events (must be enabled manually by the user).FOREGROUND_SERVICE: To ensure the overlays remain active in the background.