Android: disable intention of recent apps

I want to disable the intention of the latest applications, which is launched from the icon when you hold the home button. Currently, I find in onCreate()if the intent is launched from the quick launch dialog box, and then I call finish().

This implies that when the application goes to the background finish(), it is called so that when the application starts, it passes through onCreate(). This requires strategic coding when switching between actions in the application.

I think that I can start finish()in onResume()also after discovering where the intent came from, but a bunch of unnecessary coding can be eliminated if the quick start intent can simply be turned off.

Is it possible to disable the quick launch intent?

+5
source share
1 answer

Can people with disabilities strive for a quick start?

Put android:excludeFromRecents="true"in a manifest for this action. This will lead to the fact that your activity will not appear in the list of recently used actions, which I assume that you cause a "quick start".

+18
source

All Articles