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
0
votes
0 answers

Resume an activity which is present in different task instead of creating new activity on same task

I have an activity A in a task T1. Now, I call Activity B which gets opened on a new task T2 (because B's launch mode is "singleTask"). Now I want to go from B to A again. In this case I do not want a new instance of activity A in task T2. Instead I…
0
votes
1 answer

How to prevent starting new activity to top of task?

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 from activity A (after task stack will be A -> B (top…
Pavel Santaev
  • 845
  • 7
  • 17
0
votes
1 answer

How to get Task to call pendingIntent

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 Client…
0
votes
2 answers

Opening multiple android tasks with the same root activity

I'm trying to start an intent with Main2Activity in a new (separate) task (i.e. separate back stack and separate instance in recents screen). I realized that the way it should be done is adding the Intent.FLAG_ACTIVITY_NEW_TASK and…
0
votes
1 answer

Apply android:excludeFromRecents for all activities in application

Is there a way to set android:excludeFromRecents="true" to all activities in application instead of specifying for each activity?
0
votes
1 answer

How to Launching an other app from an intent with different process?

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" & "App B" is loading in that process. Code to…
Uday
  • 1,619
  • 3
  • 23
  • 48
0
votes
1 answer

How can I have only one process of the same app running?

I have an issue with the Android app I'm developing which makes the system run 2 processes of the same app when I press the "up" action bar button in one particular activity. To be more specific, let's call that activity Z and its parent, as…
92AlanC
  • 1,327
  • 2
  • 14
  • 33
0
votes
1 answer

TimerTask for Reconnecting in splash screen

I have splashScreen with some startup requests where data are loaded into the app. Before I initiate those splashScreen requests, I want to check connection. This part is working fine, but if app doesn't have access to the internet, I want to check…
martin1337
  • 2,384
  • 6
  • 38
  • 85
0
votes
0 answers

Multi window free form mode: Restrict vertical or horizontal resizing capacity o a window

I am trying to make a launcher application that launches some predefined set of apps in the multi-window Free form mode, and I have made some progress in doing that so far. However I am working on a new use case where I need to restrict the resizing…
0
votes
2 answers

How to access result of void onComplete() of a Task

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 use an external variable updated inside the task…
AndreaF
  • 11,975
  • 27
  • 102
  • 168
0
votes
0 answers

Start of activity through AlarmManager PendingIntent after clearing app process

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, AlarmNotificationActivity.class); PendingIntent…
Manju
  • 720
  • 9
  • 23
0
votes
1 answer

In Android hide some of the texts or views from recent app view

In android For security reasons I want to hide some of the texts or views , when app is moved to recent apps in task manager. I tried to handle this by below ways but before going to the lifecyle it takes the screen shot for recent app view. 1.…
0
votes
1 answer

Get the result of a Task without a callback

I am currently trying to migrate all my location calls to use the new Task model flow but one question I have is that is there a way to get the result of a task without having to wait for a callback? The reason I ask is because I need to get the…
tyczj
  • 71,600
  • 54
  • 194
  • 296
0
votes
2 answers

My Activities and Fragments seem to be running methods twice after modifying their launchMode

I recently modified my project so I could handle a "Login task" which consists of a single activity, and a "Main task" which comprises all other activities. I did this via the Manifest:
Chisko
  • 3,092
  • 6
  • 27
  • 45
0
votes
0 answers

What effect does programmatically reinstalling an application have on it's task stack?

If I have an application called 'merchant app' that downloads an update .apk file for itself and then launches a middle man 'updater app' to install this update, will the installation process clear the task stack associated with the merchant…
Jack Cassidy
  • 159
  • 2
  • 14
1 2 3
8 9