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
4
votes
1 answer

How to switch between Android apps programmatically

I want to switch quickly between two running Android apps, a Client and a Server, for debugging purposes. The two are connected by a socket connection. Ideally, I'd like to add a button to both to toggle to the other (preserving the connection) so…
4
votes
1 answer

How to make screen blank in recent apps but allow screenshots

I want to make view solid white or black in recent apps screen but don't want to hide it completely. And also I want to enable screenshot feature without affecting user experience. I saw the same implemented in whatsapp when fingerprint lock is…
Sanket Bhat
  • 340
  • 3
  • 16
4
votes
0 answers

Why Android Pie recents task thumbnail blank for landscape activity?

How can I get the thumbnail to show for a landscape activity in Android Pie? Seems that Google have mucked up their recents tasks. Activity is in portrait orientation -> Thumbnail is ok. Same activity is in landscape orientation -> No thumbnail.
Pnemonic
  • 1,685
  • 17
  • 17
4
votes
1 answer

time rangeseekbar in android

I am using org.florescu.android.rangeseekbar.RangeSeekBar for time selection as I need to filter the result between selected time. I was fortunate enough to get this thing working for price but now I am stuck on time selection as it accepts only…
anil tiwari
  • 135
  • 1
  • 10
4
votes
0 answers

Inconsistent app colors on Marshmallow recents screen

Device Nexus 6 running 6.0.1. Context I have an app in which the Toolbar and content areas share a background color: If I hit the 'recents' button, this color matching is preserved in the recents UI for my app: If I select another app (in this…
stkent
  • 19,772
  • 14
  • 85
  • 111
4
votes
2 answers

Is it safe to disable com.android.systemui?

I have found that Android recent app dialog can be disabled by disabling package com.android.systemui. I want to run my (rooted) device in kiosk mode so it is essential that the recent apps dialog not be shown on long press. Now, exactly what does…
JohnyTex
  • 3,323
  • 5
  • 29
  • 52
4
votes
0 answers

Application is not shown in Recent Apps list when opened via PendingIntent

My app offers a widget. User can add the widget to the home screen of his Android OS. When the user taps the widget my app gets opened. The issue is: when run so, the app is not shown in the Recent Apps list. How can I make my app to shown in the…
Bobrovsky
  • 13,789
  • 19
  • 80
  • 130
4
votes
1 answer

Activity/Application Launched From NFC Never Appears in Recent Apps List

I am developing an application targeted at ICS+ phones. In the application, I have a Splash screen, and a couple other screens that can be launched from the Splash screen or via NFC touch. One of my activities contains the following intent filter:…
3
votes
1 answer

How to set foreground application as not showing in recent list?

I know how to remove an application or activity from recent list by adding android:excludeFromRecents="true" to Manifest file. This will remove the activities when they are not in the foreground. I tried adding the flag FLAG_ACTIVITY_CLEAR_TOP also.…
Ameena Shafeer
  • 626
  • 3
  • 18
3
votes
0 answers

Detect when app is killed from recent apps list in android O and P

Use case is I have to send logout request to server when app get killed from recent lists. I use onTaskRemoved to handle that however in Android O and P I get notification bar saying "app is running" that I want to avoid. Here is how I run…
sAm
  • 585
  • 2
  • 8
  • 23
3
votes
1 answer

How to detect app is removed from recents (Overview screen) on Android Oreo?

Until now (before Android Oreo) I was handling removing from app recents via Service.onTaskRemoved(), like: public class OnAppRemovedFromRecentListener extends Service { @Override public int onStartCommand(Intent intent, int flags, int…
3
votes
0 answers

Show recent apps programmatically on android oreo

I want to somehow immitate the recent apps hard button click which opens up the native android recent apps screen. I do following currently: boolean success = showRecents1(c); if (!success) { showRecents2(c); } This works on a lot of devices,…
prom85
  • 16,896
  • 17
  • 122
  • 242
3
votes
1 answer

How to programmatically get the names of apps that currently are in the recents stack of android?

I need some code to get an object or an arraylist that contains all the names of those applications that currently are in the recents stack of android. Maybe android doesn't permit to do that (for security reasons) so even code which needs root…
3
votes
1 answer

Keep task stack when opening singleInstance activity from recent apps screen

My application contains multiple activities, the main activity (A) is in launchMode singleTop, every over activities are in singleInstance mode. I've choose singleInstance for preventing illimited navigation if i navigate like this : A -> B -> C ->…
3
votes
1 answer

What is com.android.systemui.recent.RecentsActivity for Lollipop?

I am trying to get click event of recent apps in lollipop using RunningAppProcessInfo but i did not get this activity. for (RunningAppProcessInfo appProcess : appProcesses) { if…