Questions tagged [android-task]

Android task is a collection of activities that users interact with when performing a certain job. The activities are arranged in a stack (the back stack), in the order in which each activity is opened.

Android task is a collection of activities that users interact with when performing a certain job. The activities are arranged in a stack (the back stack), in the order in which each activity is opened.

A task is a cohesive unit that can move to the "background" when users begin a new task or go to the Home screen, via the Home button. While in the background, all the activities in the task are stopped, but the back stack for the task remains intact - the task has simply lost focus while another task takes place. A task can then return to the "foreground" so users can pick up where they left off.

Useful links

124 questions
1
vote
2 answers

Launcher Activity not launched from recent Apps

Suppose there are two Activities : 1. Activity A (Launcher Activity) 2. Activity B When Launching Activity B from Activity A, I finish the Activity A. startActivity(new Intent(A.this, B.class)); finish(); and If exit button clicked from…
Shanki Bansal
  • 1,681
  • 2
  • 22
  • 32
1
vote
0 answers

Why are threads being added when I open one of my activities?

I haven't been programming for long and don't have great understanding of threading. I was running my app in Eclipse Debug and noticed that whenever I enter Activity C, two threads (AsyncTasks) show up as shown. If I exit the activity and enter…
1
vote
3 answers

Android pass parameters to TimerTask extends class

in my application i need to pass parameters to TimerTask for use Context. but i can not do it. in this below code GetSMSThread class is subclass and that need to get parameters from main class. Timer smsThread = new Timer(); GetSMSThread…
user4001049
1
vote
1 answer

launchmode of Android Activity

Suppose I have a task in which I have A, B & C Activities respectively. And then I'm starting a new Activity D which has singleInstance as it's launchMode. Now, I wonder what happens in the task level? Will the same task be preserved but contains…
stdout
  • 2,471
  • 2
  • 31
  • 40
0
votes
0 answers

Kiosk Mode on Android Device

I’m a developer developing access control application for an Android Facial recognition device. The application I’m developing should be always running. I’ve tried pinning the app and running the app on 3rd party applicstion such as SureLock but…
liam
  • 1
0
votes
0 answers

Crash in AOSP when calling Activity.startActivities(Intent [] intents) on application start

I struggle resolving a crash which either comes from my own bad implementation due to missing knowledge or from AOSP code (less likely I think...). It seems to only occurs on Android 13 and I got it mainly on Samsung devices (Galaxy S23+/S22+/S22…
Doc_1faux
  • 141
  • 5
  • 15
0
votes
1 answer

Restart a new instance of an activity already in the stack

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 press back, I go to B with the states…
Jim
  • 3,845
  • 3
  • 22
  • 47
0
votes
1 answer

Android Task Created by PendingInent cannot start another activity with pendingIntent again

I have 2 activities: Main (will schedule notification with alarm manager), and Message (to handle user navigation or notification). No launch mode and flags are set on Message. Message is opened by user navigation or notification. The normal flow of…
0
votes
2 answers

Activity backstack FLAG_ACTIVITY_NEW_TASK

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 for FLAG_ACTIVITY_NEW_TASK it is mentioned: If a…
Jim
  • 3,845
  • 3
  • 22
  • 47
0
votes
1 answer

Android Task not returning FirebaseVisionText type

I'm trying to pull the text and blocks from my image processed through a FirebaseVisionTextRecognizer, and even though the processing is successful, it doesn't seem to return as the correct type. Android studio reports that result is of type…
0
votes
2 answers

Android switching between tasks

I'm trying to find a way to switch between tasks in android. Let's say I have Activity A, B, C, D. Activity A and B are in one task(affinity) While C and D are in another task. This is the manifest code of C activity which creates a new task. …
0
votes
0 answers

Keep my Activty open on notification click?

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 then the OfferActivity(opened through home activity…
sharma.mahesh369
  • 985
  • 11
  • 28
0
votes
0 answers

Call screen minimizing issue on Android 10

I have a strange bug only producing on Android 10 while perfectly fine on Pie and Oreo. I am starting a call from Activity, when the call starts i want to minimize the call screen and get my activity back to foreground. My code to minimize call…
0
votes
0 answers

Android app showing multiple tasks when launched from QRCode scanner

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 startActivityForResult) Based on…
0
votes
0 answers

How to check what the android service is currently doing once binding to it?

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. -Service stops Let's say while the service is doing…
1 2 3
8 9