Questions tagged [launchmode]
176 questions
0
votes
1 answer
android singleTask/singleInstance issue
I'm designing a game for android which I want to have only one instance of it.
the game has the main activity which I called GameActivity and another activity I called CreateAccountActivity.
I defined int the manifest the GameActivity to be…

piojo
- 1,919
- 4
- 24
- 40
0
votes
0 answers
.NET MAUI with Android LaunchMode as SingleTask, OnCreate() of MainApplication is called even if the app is closed
.NET MAUI app, created a new project and added "LaunchMode = LaunchMode.SingleTask" to the MainActivity.cs attribute.(Activity is only in MainActivity.cs)
Repeatedly launching the application and deleting the app from the Task Manager will call…

ka5u8
- 1
- 2
0
votes
0 answers
When launch mode is set to single instance in manifest, there is an issue where the intent may be missing from another application in android
I'm currently working on implementing a feature that handles video links received through the YouTube sharing functionality in my application. However, I encountered an issue where if this handling is done in the background while the application is…

이준영
- 1
0
votes
0 answers
How to start a new task when direct to chrome/browser while using Microsoft Authentication Library (MSAL) to log in on Android
When redirect to chrome, how to make it start a new task under chrome in the Recent:
I'm developing an android app, when press the sign in button on the screen, it will use Microsoft Authentication Library (MSAL) and redirect to the microSoft sign…

keleDqm
- 1
- 2
0
votes
0 answers
after minimize the app from singleInstance launchMode activity, all previous activities in backStack destroyed
I am running into issue where onDestroy() invoked for all previous activities when singleInstance activity is running and i minimize my app.
i create a sample App to check this behavior:
my Manifest

Hofit.Shalom
- 36
- 6
0
votes
0 answers
Android Activity Stack is being removed when application minimized
I have application with activity A without any custom launch modes and activity B which is started from application context with FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_SINGLE_TOP flags - it need's to be in new task because it's started from…

peemes
- 165
- 1
- 7
0
votes
1 answer
How to reorder singleTask activity without creating new one?
I have 2 activity (Activity A and Activity B)
Activity A is singleTask and Activity B has standard launch mode.
When application started with Activity A and launch mode is singleTask, now from activity A start new activity B on button click.
So…

Vishal Patoliya ツ
- 3,170
- 4
- 24
- 45
0
votes
0 answers
Always retain a single instance of my MainActivity (launcher app)
I'm currently working on an app that is supposed to replace the devices whole UI. Therefore I'm using in order to call it whenever I press the home button, replacing the devices launcher.
This…

Mumbira
- 1
- 1
0
votes
0 answers
Android. Deeplink not working with standard launch mode
I have main (launcher activity) with singleTask launch mode (e.g. A). I need this launch mode to handle deeplink. But when I fo from my main activity to another activity B and press to home button, when I launch my app is opening activity A, but…

testivanivan
- 967
- 13
- 36
0
votes
1 answer
Simple question LaunchMode for SingleInstance
I want to ask about android LaunchMode attribute in the AndroidManifest.xml.
Assume that we have A,B,C,D,E and F activity. D and F will be SingleInstance and others will be standart mode. And there is stack as Task1: A->B->C->E and Task2: D in my…

Seyfi
- 1
- 2
0
votes
0 answers
Activity created twice in pending intent
I have a problem about activity created twice.
When the notification appears, the activity will appear because of the fullscreen intent. At this time, I press the home button and click the notification, and the activity is actually created again.
I…

Joe199382
- 199
- 1
- 12
0
votes
1 answer
Confused with launchMode
I made a Music Player that operates in two ways:
If started as a normal app, it continues playing what it was playing when last closed, and it should start in the background;
If an audio file is selected in a fileManager, it plays the song clicked…

Luis A. Florit
- 2,169
- 1
- 33
- 58
0
votes
1 answer
Unable to fully close activity when using "singleTask" as launch mode
I'm trying to create a separate activity and use it to receive data from other applications. This SecondaryActivity is being launched through intent.action.SEND and android.intent.action.SEND_MULTIPLE in the manifest. I have also set it to use…

Jisoo
- 43
- 6
0
votes
1 answer
singleTask app doesn't reuse the Task already present in recent apps when started with startActivityForResult method
I have two android apps, lets call them app A and app B.
Inside app A I create a share intent as follows:
shareIntent=Intent.createChooser(sendIntent, null); // sendIntent contains data to share.
this will be used to pass data to app B.
App B's…

Akash
- 1
- 1
0
votes
1 answer
How to have second launcher always open the application at specified activity
In my application, I have specified a second activity that can be launched from the launcher, using this manifest entry:

Andrew Mackenzie
- 5,477
- 5
- 48
- 70