Here you can find the source of organizeAndStart(Activity activity, Class> classes, Map
private static void organizeAndStart(Activity activity, Class<?> classes, Map<String, String> paramMap)
//package com.java2s; import java.util.Iterator; import java.util.Map; import java.util.Set; import android.app.Activity; import android.content.Intent; public class Main { private static Intent intent; private static void organizeAndStart(Activity activity, Class<?> classes, Map<String, String> paramMap) { intent = new Intent(activity, classes); if (null != paramMap) { Set<String> set = paramMap.keySet(); for (Iterator<String> iterator = set.iterator(); iterator .hasNext();) {/*from w w w . j ava 2 s. c o m*/ String key = iterator.next(); intent.putExtra(key, paramMap.get(key)); } } intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); activity.startActivity(intent); } }