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!
Best Answer
Here's what I used to get information on an undocumented (3rd-party) intent:
Make sure to check if
bundle
is null before the loop.