Created
February 18, 2014 09:57
-
-
Save ZacSweers/9067844 to your computer and use it in GitHub Desktop.
Flashnotifier API Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make an API request like this: | |
Intent i = new Intent("com.leepapesweers.flashnotifier.API"); | |
// Put flash pattern in request | |
// OPTIONAL | |
ArrayList pattern = new ArrayList(); | |
pattern.add(50); | |
pattern.add(50); | |
i.putIntegerArrayListExtra("flash_pattern", pattern); | |
// Put sending application package name | |
// REQUIRED | |
i.putExtra("calling_application", getPackageName()); | |
// Send the broadcast | |
sendBroadcast(i); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment