Android Question How to make the notification list appear and disappear - from code program?

amorosik

Expert
Licensed User
I have an A app that works in the foreground
On Android smartphones, by swiping from top to bottom, the list of notifications appears above the app A that I am currently using
When the smartphone is in this position, with the notification list visible, the app A on which I was working is in the background
How to make the notification list disappear from app A code ?
 

drgottjr

Expert
Licensed User
Longtime User
although the overview screen is controlled by the os (apps are automatically added/removed from the list), it is possible for you to make some adjustments.

for example from: https://developer.android.com/guide/components/activities/recents
You can always exclude a task from the Recents screen entirely by setting the <activity> attribute,
android:excludeFromRecents to true.

i am confused by your question, however. so i can't add more at this time.
 
Upvote 0
Top