activity的启动模式有四种,分别为:
“standard” (默认)
“singleTop”
“singleTask”
“singleInstance”
一、standard
xml中配置,android:launchMode = "standard"
<activity android:name=".app.ui.IntentLaunchModeActivity"
android:launchMode="standard"
android:label="@string/label_intent_mode">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.SAMPLE_CODE" />
</intent-filter>
</activity>
package demo.my.com.myapidemo.app.ui;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.u