Skip to content

Instantly share code, notes, and snippets.

@ZacSweers
Created February 18, 2014 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZacSweers/9067844 to your computer and use it in GitHub Desktop.
Save ZacSweers/9067844 to your computer and use it in GitHub Desktop.
Flashnotifier API Example
// 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