In my activity:
<activity android:name=".MainActivity" android:screenOrientation="landscape" android:launchMode="singleTask" android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />
I use onNewIntent to handle new intentions. I do not need to process the intentions from the story, and in the beginning I put this code
if ((intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0) { return; }
However, this flag is not set for historical purposes in the Kindle Fire . On other Android devices, this code works well. Maybe there are other ways to avoid handling the intentions of the story?
source share