Back to project page roboject.
The source code is released under:
Apache License
If you think the Android project roboject listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.akquinet.android.roboject.util; /*from ww w . j a v a 2 s. c o m*/ import android.content.Intent; import java.util.Collections; import java.util.HashMap; import java.util.Map; public class IntentRegistry { private static Map<Intent.FilterComparison, Map<String, Object>> objectIntentExtras = new HashMap<Intent.FilterComparison, Map<String, Object>>(); public static synchronized Map<String, Object> getObjectIntentExtras(Intent intent) { Map<String, Object> intentExtras = objectIntentExtras.get(new Intent.FilterComparison(intent)); if (intentExtras != null) { return intentExtras; } return Collections.<String, Object>emptyMap(); } public static synchronized void putObjectIntentExtras(Intent intent, Map<String, Object> extras) { objectIntentExtras.put(new Intent.FilterComparison(intent), extras); } }