Is there an easy way to convert a Map to a Bundle in android without explicit iteration?
Why?
Firebase returns a Map for Notification
I guess a good old fashioned for loop is the easiest way:
Bundle bundle = new Bundle(); for (Map.Entry entry : getData().entrySet()) { bundle.putString(entry.getKey(), entry.getValue()); }