This should do the trick.
<activity ... android:launchMode="singleTop" />
When you create an intent to start the app use:
Intent intent= new Intent(context, YourActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP);
This is that should be needed.
Related Contents:
- How do I pass data between Activities in Android application?
- How to manage startActivityForResult on Android
- How to send an object from one Android Activity to another using Intents?
- How to start new activity on button click
- Android: Go back to previous activity
- Android: Clear the back stack
- Using Intent in an Android application to show another activity
- How can I return to a parent activity correctly?
- How to switch activity without animation in Android?
- Start Activity from Service in Android
- Intent – if activity is running, bring it to front, else start a new one (from notification)
- Kotlin Android start new Activity
- Finish an activity from another activity
- Where/How to getIntent().getExtras() in an Android Fragment? [duplicate]
- How to pass a parcelable object that contains a list of objects?
- How to open a second activity on click of button in android app
- What is the meaning of android.intent.action.MAIN?
- How to bring an activity to foreground (top of stack)?
- Using startActivityForResult, how to get requestCode in child activity?
- Advantages of using Bundle instead of direct Intent putExtra() in Android
- Pass data from Activity to Service using an Intent
- Android: Capturing the return of an activity
- “Failure Delivering Result ” – onActivityForResult
- How can I start an Activity from a non-Activity class?
- Check if extras are set or not
- Android: No Activity found to handle Intent error? How it will resolve
- Start Activity Using Custom Action
- Activity stack ordering problem when launching application from Android app installer and from Home screen
- How should I forward Intent parameters through chains of Activities?
- Difference between startActivityForResult() and startActivity()? [closed]
- Display Activity From Bottom to Top
- How to return a result through multiple activities
- Testing that button starts an Activity with Robolectric
- Dynamic start activity in Android?
- Android – Opening the email application? [duplicate]
- What’s the difference between activity and intent in Android?
- How to prevent custom views from losing state across screen orientation changes
- difference and when to use getApplication(), getApplicationContext(), getBaseContext() and someClass.this
- What’s “requestCode” used for on PendingIntent?
- Start service in Android
- How to start an Intent by passing some parameters to it?
- Programmatically update widget from activity/service/receiver
- How to listen for preference changes within a PreferenceFragment?
- How do you use Intent.FLAG_ACTIVITY_CLEAR_TOP to clear the Activity Stack?
- Android Fragment onCreateView vs. onActivityCreated
- open google maps through intent for specific location in android
- Using a broadcast intent/broadcast receiver to send messages from a service to an activity
- Dagger2 Custom Scopes : How do custom-scopes (@ActivityScope) actually work?
- Choosing photo using new Google Photos app is broken
- Android: Activity getting Destroyed after calling Camera Intent