Skip to content

Instantly share code, notes, and snippets.

@dennisvandalen
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save dennisvandalen/4a3fa264ddadb2de1d41 to your computer and use it in GitHub Desktop.

Select an option

Save dennisvandalen/4a3fa264ddadb2de1d41 to your computer and use it in GitHub Desktop.
Log all extras in intent
Bundle bundle = intent.getExtras();
if (bundle != null) {
Set<String> keys = bundle.keySet();
Iterator<String> it = keys.iterator();
Log.e("INTENT DUMP","Dumping Intent start");
while (it.hasNext()) {
String key = it.next();
Log.e("INTENT DUMP","[" + key + "=" + bundle.get(key)+"]");
}
Log.e("INTENT DUMP","Dumping Intent end");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment