FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY isn't set for intents from history
Asked Answered
L

1

7

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 intents. I don't need to process intents from history and in the beggining I've put this code

  if ((intent.getFlags() & Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY) != 0) {
    return;
  }

However this flag is not set for the history intents on Kindle Fire. On other android devices this code works good. Maybe there are any other ways to avoid handling history intents?

Lianneliao answered 4/1, 2012 at 20:35 Comment(3)
Doesn't seem to show up for me on a couple of 4.0 phones either...Topdrawer
I am also have this problem according to my google play developer console crash reportsRenell
Sounds like the kindle fire launcher doesn't do all the same things as the android launcher. Have you tried filing a bug report with amazon?Phlegm
H
0

Kindle dont support all android operations, check at https://developer.amazon.com/sdk/fire/intents-supported.html

Hortensiahorter answered 8/10, 2013 at 17:23 Comment(1)
While you might have a point, your link is not relevant to the actual question at issue here, which does not concern the Intents that a device can handle via its default software, but rather the flags attached by the system to Intents delivered to 3rd party apps.Coom

© 2022 - 2024 — McMap. All rights reserved.