Created
November 16, 2017 03:01
-
-
Save hilfritz/80449f31db05c3e393e4da84076feb24 to your computer and use it in GitHub Desktop.
Java: convert Map to Bundle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Bundle convertMapToBundle(Map<String, String> data){ | |
Bundle bundle = new Bundle(); | |
for (Map.Entry<String, String> entry : data.entrySet()) { | |
bundle.putString(entry.getKey(), entry.getValue()); | |
} | |
return bundle; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment