Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
134 views

In my Android app, I might open multiple activities—let's say Activities A, B, and C—in sequence. Then, I switch to a third-party app. Later, I want to return to my app via a deep link. My goal is to ...
Gregory's user avatar
  • 141
0 votes
1 answer
38 views

I have two Android apps, App A and App B, and I am using Intents to switch between them. Scenario: App A opens App B using an Intent. App B completes its task, and now I need the user to switch back ...
Santosh Naruje's user avatar
2 votes
1 answer
243 views

I have an app that handles an XMPP connection. Now this connection is closed and resumed correctly when the main (and only) activity goes onStop(). Problem is, in the particular case when the user: -...
jack_the_beast's user avatar
0 votes
1 answer
268 views

I have a home activity A, from where I open activity B. In B there are some complex views with states with data fetched from the network. From B with the press of a button I go to activity C. Now if I ...
Jim's user avatar
  • 4,529
1 vote
0 answers
99 views

In a small MDM (Device Manager) app, we're trying to achieve the following functionality: Have the "Activate Device Manger" dialog popup as soon as the app is installed. This app must be ...
sh7411usa's user avatar
  • 315
0 votes
2 answers
349 views

I a bit confused with the documentation for launch modes. Specifically the doc mentions: Activities in the stack are never rearranged, only pushed and popped from the stack But later in the section ...
Jim's user avatar
  • 4,529
1 vote
1 answer
1k views

i am trying to kill activity from tasks after picture and picture mode was activated and so far I tried finish(), finishAffinity(), onBackPressed(), programmatically set excludeFromRecent but activity ...
Kebab Krabby's user avatar
  • 1,699
4 votes
0 answers
132 views

I seem to find conflicting information with regards to the basic/default behavior of the backstack when dealing with tasks whose activities come from different apps. From my understanding so far: A ...
user3394898's user avatar
2 votes
1 answer
657 views

My app has two activities: A and B. A - is the main activity (default for launch), it has action android.intent.action.MAIN and category android.intent.category.LAUNCHER, and A activity has overridden ...
Alexey Nikitin's user avatar
1 vote
0 answers
42 views

I am making an alarm app using AlarmManager. The problem is, if I kill the app on the task, AlarmManager doesn't work. How do I fix it? MainAtivity.kt fun scheduleAlarm(context: Context) { val ...
H.JiMan's user avatar
  • 390
2 votes
2 answers
1k views

How can I click a notification, bring my app to the foreground if needed, and keep the stack as it was (even when the app went to the background)? I have a NotificationClickActivity that is launched ...
Favolas's user avatar
  • 7,281
0 votes
0 answers
127 views

I have a strange scenario in my application where I want to keep my activity open even though if any notification is clicked. The scenario is I have splash activity that opens the Home Activity and ...
sharma.mahesh369's user avatar
0 votes
0 answers
173 views

Scenario: QRCode scan URL scheme Open the scanned URL scheme Launch Main activity (root) Launch Welcome activity (via startActivity, with Intent.FLAG_ACTIVITY_NEW_TASK) Launch Welcome activity A (via ...
user3732464's user avatar
0 votes
0 answers
211 views

Let's say I have a an Android started service that does some tasks as this example: -Service starts -Does task A, does task B, then downloads file 1, downloads file 2, and Finally does task C. -...
Sam Matt's user avatar
  • 123
0 votes
1 answer
341 views

I have a activity A with launchMode=singleTop. And activity B with standart launch mode. First case: I launching app from installer or Google Play (not from launcher), then start other activity B ...
Pavel Santaev's user avatar
0 votes
1 answer
211 views

I've been trying to pass a pendingIntent to the Activity Recognition Client as part of a Task, however the pendingIntent doesn't seem to be being called. I'm using Google's Activity Recognition ...
Matt's user avatar
  • 88
2 votes
0 answers
715 views

Running adb shell dumpsys activity activities shows the current tasks and its activities. But the tasks are grouped by "Stacks" (eg. Stack #0, Stack #1). What those Stacks means? The following result ...
Samuel T.'s user avatar
  • 372
1 vote
0 answers
576 views

I have a problem with two of the buttons in a launcher app I'm developing. The first button should launch TotalCommander's built-in text editor to display a certain text file. The second button should ...
Tamás Bolvári's user avatar
2 votes
1 answer
2k views

I currently managed to allow user switch between two distinct acitivties groups (let's said 4 activity classes A/B group and X/Y group) and switch by FLAG_ACTIVITY_REORDER_TO_FRONT flag, but I noticed ...
林果皞's user avatar
  • 7,873
1 vote
1 answer
118 views

My application only have MainActivity with a ImageView. BroadcastReceiver works. The Toast Message is displayed When I connect USB. Now, I need start my application minimized and show the ...
Luiz Lorena's user avatar
0 votes
1 answer
750 views

Actually, I'm trying to launch "App B" From "App A" through Uri intent, but that opens up in the same process of "App A" when I minimize the app it shows only one app in the background that is "App A" ...
Uday's user avatar
  • 1,729
1 vote
0 answers
73 views

I've got a strange issue while working with intent flags. I will try to explain as clear as possible. I have 3 Activities in my app. Dashboard Activity, Document Activity, and Child Activity. I've ...
Vijay's user avatar
  • 565
2 votes
0 answers
92 views

Looks like Every tutorial that we have got out there on the Web mentions that FLAG_ACTIVITY_NEW_TASK Starts a new task if the Activity we are starting is not currently running in the task.But it seems ...
GeekyCoder's user avatar
0 votes
2 answers
2k views

I'm working with a lib strangely designed this code basically has a Task object withonComplete() and onfail() methods, both these methods are void so I cannot use return inside them. I have tried to ...
AndreaF's user avatar
  • 12.5k
0 votes
0 answers
50 views

My app will allow user to set desired time on which activity will trigger. I used AlarmManager to open activity. Below is the code for same.` /* Intent intent = new Intent(this, ...
Manju's user avatar
  • 750