Skip to content

Instantly share code, notes, and snippets.

@sdex
Created July 24, 2015 11:25
Show Gist options
  • Save sdex/420a9b94e880858d8eef to your computer and use it in GitHub Desktop.
Save sdex/420a9b94e880858d8eef to your computer and use it in GitHub Desktop.
private void debugIntent(Intent intent, String tag) {
Log.v(tag, "action: " + intent.getAction());
Log.v(tag, "component: " + intent.getComponent());
Bundle extras = intent.getExtras();
if (extras != null) {
for (String key: extras.keySet()) {
Log.v(tag, "key [" + key + "]: " +
extras.get(key));
}
}
else {
Log.v(tag, "no extras");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment