ex:
A -> B - > C
想要從C返回A
C.java:
Intent intent = new Intent(this, A.class);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
AndroidManifest.xml:
<activity
android:name="com.passionbean.fitmi.A"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:launchMode="singleTask"
>
</activity>
沒有留言:
張貼留言