Android Intents
Beeper Android supports external intents that allow other apps, automation tools like Tasker, or command-line tools to interact with and control certain Beeper features. This enables powerful automation and integration possibilities.
Supported Intents
Section titled “Supported Intents”Toggle Incognito Mode
Section titled “Toggle Incognito Mode”Control Beeper’s incognito mode programmatically from external sources.
Intent Details:
- Action:
com.beeper.android.TOGGLE_INCOGNITO_MODE
- Component:
com.beeper.android/com.beeper.ext.ExternalBroadcastReceiver
- Extra:
enabled
(boolean) -true
to enable,false
to disable incognito mode
Usage Examples
Section titled “Usage Examples”import android.content.Intentimport android.content.ComponentName
// Enable incognito modefun enableIncognitoMode() { val intent = Intent().apply { action = "com.beeper.android.TOGGLE_INCOGNITO_MODE" component = ComponentName( "com.beeper.android", "com.beeper.ext.ExternalBroadcastReceiver" ) putExtra("enabled", true) } sendBroadcast(intent)}
// Disable incognito modefun disableIncognitoMode() { val intent = Intent().apply { action = "com.beeper.android.TOGGLE_INCOGNITO_MODE" component = ComponentName( "com.beeper.android", "com.beeper.ext.ExternalBroadcastReceiver" ) putExtra("enabled", false) } sendBroadcast(intent)}
Task Setup:
- Create a new Task in Tasker
- Add Action → System → Send Intent
- Configure the intent:
- Action:
com.beeper.android.TOGGLE_INCOGNITO_MODE
- Package:
com.beeper.android
- Class:
com.beeper.ext.ExternalBroadcastReceiver
- Extra:
enabled:true
(orenabled:false
) - Target: Broadcast Receiver
- Action:
# Enable incognito modeadb shell am broadcast \ -a com.beeper.android.TOGGLE_INCOGNITO_MODE \ --ez enabled true \ -n com.beeper.android/com.beeper.ext.ExternalBroadcastReceiver
# Disable incognito modeadb shell am broadcast \ -a com.beeper.android.TOGGLE_INCOGNITO_MODE \ --ez enabled false \ -n com.beeper.android/com.beeper.ext.ExternalBroadcastReceiver
Troubleshooting
Section titled “Troubleshooting”Verification
Section titled “Verification”To verify the intent was received, check Beeper’s incognito mode status in the app UI after sending the intent.