Last active
August 29, 2015 14:21
-
-
Save dennisvandalen/4a3fa264ddadb2de1d41 to your computer and use it in GitHub Desktop.
Log all extras in intent
This file contains hidden or 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
| 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