Is there a way to start an action as a new instance without history?
In the manifest file I tried the following.
android:launchmode="singleinstance" android:noHistory=true
I can achieve what I need, but as soon as the screen is locked, the previous action is displayed. What noHistory should do, but not what I need.
Saving the screen would always be preferable, since it overcharged the battery. Is there any other way to start working with a new instance and not have a history, but also work when the screen is locked?
source share