Questions tagged [android-recents]

Recents provides an efficient way of switching between recently used applications. It provides a clear navigation path between multiple ongoing tasks.

Information is taken from UI Overview

Recents screen

Recents provides an efficient way of switching between recently used applications. It provides a clear navigation path between multiple ongoing tasks.

The Recents button at the right side of the navigation bar displays the apps that the user has interacted with most recently. They are organized in reverse chronological order with the most recently used app at the bottom.

Switch to an app by touching it. Remove an item by swiping left or right.

120 questions
2
votes
1 answer

SyncAdapter process killed when swiped from recents

I am trying to create SyncAdapter running background operation (without foreground notification). It is working, except the case when activity (task) which triggered ContentResolver.requestSync(...) is swiped away from recent applications. In that…
2
votes
0 answers

how to run (launch) recent task from recent task list from a android service?

I am trying to launch last recent task from task list in android . Using ActivityManager to get list of tasks. This will get me task id,baseintent etc ActivityManager m =…
2
votes
1 answer

Exclude only one activity from stack of recents

I've the following problem: When I exclude from stack of recents through AndroidManifest.xml in only one activity, all my activities are excluded from recents. How can I exclude from the stack of recents only one of these activities?
2
votes
2 answers

How to change App Name on Recent Task list? - Android

Does anyone know how the Recent Tasks list in Android populates the name it displays next to each app? I would like to change this from the name of the launcher activity to something else.
Josh
  • 268
  • 2
  • 14
2
votes
2 answers

Bring application to foreground same as Pressing the application in the recent activity?

How can I bring my application back to foreground, same as when the user presses on the application icon/image in the recents activity.
TacB0sS
  • 10,106
  • 12
  • 75
  • 118
1
vote
1 answer

Show notifications at specific time in the future with app closed and not in Recent on Android

I'm developing an Android application that needs to remind the user to perform certain tasks, periodically updated. As long as the app is open there are no problems, as I can notify the tasks directly by editing the GUI and activating a sound…
1
vote
0 answers

Remove android setting screen from recent list

I am developing a kiosk mode app that requires me to remove any app in the background and recent list. This includes the settings page and any other system related screens. How do I do that if I don't have a rooted device? Thanks in advance
Mike
  • 11
  • 1
1
vote
0 answers

Hiding third party applications from recent apps list

I have an Android 7.0 phone. It is rooted. I have written an application which always runs in the background (background service). I was able to hide the app I have written from the recent apps list by adding android:excludeFromRecents="true" to the…
machinery
  • 5,972
  • 12
  • 67
  • 118
1
vote
1 answer

Activity life cycle after swiping the app from recent screen

If pressing the back button calls the onDestroy() method, what method is called when the app is swapped from the recent screen. How to load the activity that is present in the recent screen, after accidentally pressing the back button?
user10109436
1
vote
2 answers

Android recent device button Listener

How can I get a call back listener for the recent Apps Android device button, just like the Back Button press. I've tried onKeyPress events but it did not work. Back button clicks can be easily found, but how do I detect a recent button click? I…
Muhammad Hassaan
  • 874
  • 6
  • 18
1
vote
1 answer

Don't kill app when removed from recent apps

I want my application to keep running when the user removes the application from the recent apps screen. Current Scenario: The activity stack: A --> B --> C (foreground service started from this activity). Now, if the user removes the application…
1
vote
1 answer

Clearing activity from history unloads application

I've been playing arround with using the camera flashlight from many interfaces, Activities, Widgets and Notifications, and to coordinate all interfaces I'm using a static initialization block in a random class to instance all needed components,…
1
vote
1 answer

Start another app activity removing it from recents list

I'm trying to start an activity of an app (that is not mine and which code I don't know and/or can't edit), from my app. What I want to do, is that after starting that activity (let's call it OtherAppActivity) neither my activity (let's call it…
1
vote
3 answers

Activity does not show in the recents android

Scenario - I dont have my application running in the background. I have a receiver implemented for ACTION_USER_PRESENT. In this receiver i start a activity whose manifest settings are :
beginner
  • 383
  • 3
  • 5
  • 19
1
vote
1 answer

How to set thumbnail for Recent Apps screen?

My app shows sensitive information that I don't want showing up in the 'Recent Apps' screen so I'd like to change what is shown there, or have it show nothing. I've seen an answer from a few years ago about using Activity.onCreateThumbnail() but it…
kassim
  • 3,880
  • 3
  • 26
  • 27