public class IntentUtil { public static void start_activity(Activity activity,Class<?> cls,<span style="color:#ff6666;">BasicNameValuePair</span>...name) { Intent intent=new Intent(); intent.setClass(activity,cls); for(int i=0;i<name.length;i++) { intent.putExtra(name[i].getName(), name[i].getValue()); } activity.startActivity(intent); activity.overridePendingTransition(R.anim.push_left_in, R.anim.push_left_out); } }
原文地址:http://blog.csdn.net/u014600432/article/details/41693381