<span style="font-size:24px; font-family: Arial, Helvetica, sans-serif;">
</span>
<span style="font-size:24px; font-family: Arial, Helvetica, sans-serif;">public class SecondActivity extends Activity{</span>
<span style="font-size:24px;"><strong>//启动Activity
public static void actionStart(Context context,String data1,String data2){
Intent intent=new Intent(context,FragmentReplaceActivity.class);
intent.putExtra("param1", data1);
intent.putExtra("param2", data2);
context.startActivity(intent);
}</strong></span>
<span style="font-size:24px;"><strong>...</strong></span>
<span style="font-size:24px;"><strong>}</strong></span>
<span style="font-size:24px;"><strong>
</strong></span>
<span style="font-size:24px;"><strong>
</strong></span>
<span style="font-size:24px;"><strong>//启动活动</strong></span>
<span style="font-size:24px;"><strong>SecondActivity.actionStart(FirstActivity.this,"data1","data2");</strong></span>
<span style="font-size:24px;">
</span>
<span style="font-size:24px;">
</span>
<span style="font-size:24px;">
</span>
</pre><pre name="code" class="java">
...