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

How to create Listview like android L's recent App listview

I known about use of RecycleView and CardView but i want to create Listview that can work like android L Recent App listview . You can check from this link . below is screen shot of android 5.0 recent app list.
Herry
  • 7,037
  • 7
  • 50
  • 80
3
votes
2 answers

Android multiple activity tasks when application is killed

The app has 2 tasks of activities: TASK 1 Activity A (launcher) Activity B TASK 2 Activity C <---- that's where the stack points at in the example. Now try that: Go to the recent apps carrousel (you know by clicking the button on the right…
Jordan
  • 551
  • 3
  • 11
3
votes
1 answer

Handle app closing event from Launcher's menu

What I want to do is to know when user closes the app from Android Launcher's menu, which gets opened on home button long click: I want to do some operations when user closes the app. Actually, I want user to logout each time he leaves the app, but…
azizbekian
  • 60,783
  • 13
  • 169
  • 249
2
votes
0 answers

Is there a function to get a list of the recently used apps in android? Update for Pie

I have searched for days on a way to do this but none of them really suite my needs or I have a hard time understanding them. I am looking to get all of the apps that would normally show up on the recent screen. All of the questions that have been…
2
votes
1 answer

How to trigger an event, when app is removed from Recent List in Android

I want to restart my app when it is removed from recent list. I have added the restarting code in onDestroy() method. It's working fine in Android 7 and up. But on Android 6 and older versions, it's not working. onDestroy() method is called only…
2
votes
1 answer

How to prevent my app from being closed by user in/from Recent

In Phones Like Oppo and One Plus 6 some apps like Facebook and Whatsbook do not get closed from recent. When I close all apps from recent, these 2 apps Facebook and Whatsapp remains there. In the screenshot I have attached, we can see a lock at top…
2
votes
2 answers

Removing my app from the task list programmatically when it goes to background (API <=20)

I'm trying to remove my app from recents (the app list you get when you press the "square" button, just to avoid misunderstandings). I found the piece of code below to do that and it's working well. The problem is the app has minimum SDK = 19, so it…
jack_the_beast
  • 1,838
  • 4
  • 34
  • 67
2
votes
0 answers

Lock an app on the recent apps screen (prevent user from closing it) when certain functions are running

I am trying to prevent users from closing my app when it is "recording" an activity (activity here is a hike, bike ride, run etc). If I start recording and then go to another application then hit my "recent apps" button on the phone and hit "close…
Blair Holmes
  • 1,521
  • 2
  • 22
  • 35
2
votes
1 answer

How to change task affinity in Android?

There is an activity (A) in my application that can be called from other apps (B) if A is called from B, in recent task there are an instance of B and an instance of A. i want that A be showen as part of B Task. I've found that by adding same…
user3473590
2
votes
0 answers

Detect application launch from recent apps in Android

Hi I am developing one android application in which I am trying to check whether application is launch from recent task or not.Basically what I want to do, I want to show pin-code screen once user resume application from background. I tried with…
nilkash
  • 7,408
  • 32
  • 99
  • 176
2
votes
1 answer

android detect the recent buttons click

How to detect the recent buttons click in android. If I use the, onWindowFocusChanged, It's calling if any new activity started. If I try to use ActivityManager.getRunningTasks and check the top activity's package name is the applications package…
2
votes
1 answer

Flow change on Home button press when opening app from APP Tray or from Recent app in Android?

Why Android apps act differently when opening app from application icon and opening from Recent apps (after exiting application by pressing Home button)? Example : Start Activity A -> Activity B then press home button. Opening application from app…
Sumit T
  • 1,273
  • 2
  • 17
  • 32
2
votes
4 answers

removing activity from Task manager stack in android

I am working on and Android application. When my application is running and i press the recent applications button on the phone , Activity's onPause() method is called . Inside this onPause i call finish() . So the activity gets destroyed. But its…
2
votes
1 answer

Android Emulator with HAX: How to access recent Apps list with Android 5?

Can anybody please give me a hint how to access the recent apps list on the Android Emulator running the Intel Atom Image of Android 5 using HAX. Formerly, it was easy just pressing the home button for a long time. However, with this Android 5 image…
opt12
  • 320
  • 3
  • 11
2
votes
2 answers

Disable recent tasks button on Android 5.0

I am working on an application that needs to suppress the recent apps button as it is done in the Toddler Lock application. What I want is user should not be able to exit my application by pressing the recent apps button. In toddler lock…
Dpk
  • 199
  • 1
  • 8