Why does the main activity restart again after its called intent finished (Android 4.2.2)?
问题 The application works well in Android 2.3.5 But it does not work as desired in Nexus 4 (Android 4.2.2). The application is: In the onCreate of main activity, it calls another activity through intent. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final Intent launchIntent = new Intent(MainActivity.this, AndroidVideoCapture.class); launchIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_SINGLE_TOP)