public static void actionStart(Context context,String data1,String data2){ Intent intent = new Intent(context,SecondActivity.class); intent.putExtra("param1",data1); intent.putExtra("param2",data2); context.startActivity(intent);
}
button.setOnClickListener(new OnClickListener(){
public void onClick(View v){
SecondActivity.actionStart(FirstActivity.this,"data1","data2");
}
}