Does anyone know of a way to enumerate all of the key value pairs of a bundle without knowing ahead of time all the keys?
I think the only way to get all they key-value pairs is to enumerate through keys using keySet()
and then get()
its relative value. For example:
for(String key : bundle.keySet()){
Object obj = bundle.get(key); //later parse it as per your required type
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With