Skip to content

Instantly share code, notes, and snippets.

@amadeu01
Last active October 11, 2017 15:33
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 amadeu01/76267d5c50035bb16bd8271c4fe0cba4 to your computer and use it in GitHub Desktop.
Save amadeu01/76267d5c50035bb16bd8271c4fe0cba4 to your computer and use it in GitHub Desktop.
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