Last active
October 11, 2017 15:33
-
-
Save amadeu01/76267d5c50035bb16bd8271c4fe0cba4 to your computer and use it in GitHub Desktop.
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
public static void printAllIntentData(Intent intent) { | |
Bundle bundle = intent.getExtras(); | |
if (bundle != null) { | |
for (String key : bundle.keySet()) { | |
Object value = bundle.get(key); | |
Log.d(TAG, String.format("%s %s (%s)", key, | |
value.toString(), value.getClass().getName())); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment