Start Activity clearing top in Android
android, android-activity, android-intent
Solution
Use android:noHistory=true in manifest file for particular activity to clear.Hope this might solve your issue.
Problem
I have the following Activities in my stack: ``` A , B , C, D ``` I want to relaunch B in order to get this stack: ``` A , B' ``` Where B' is a new B instance (not the old receiving a onNewIntent callback, how can I do it? By the way I'm using a ``` intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); ``` when launching the B activity but this way the onNewIntent is called instead of start a new instance