Listing all extras of an Intent

For debugging reasons I want to list all extras (and their values) of an Intent. Now, getting the keys isn’t a problem

Set<String> keys = intent.getExtras().keySet();

but getting the values of the keys is one for me, because some values are strings, some are boolean… How could I get the values in a loop (looping through the keys) and write the values to a logfile? Thanks for any hint!

14 Answers
14

Leave a Comment