FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY not set for history purposes

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?

+6
source share
1 answer

Kindle does not support all operations in Android, check https://developer.amazon.com/sdk/fire/intents-supported.html

0
source

Source: https://habr.com/ru/post/905140/


All Articles