7

在我的活动中:

<activity
    android:name=".MainActivity"
    android:screenOrientation="landscape"
    android:launchMode="singleTask" 
    android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />

onNewIntent用来处理新的意图。我不需要处理历史中的意图,并且在开始时我已经放置了这段代码

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

但是,此标志并未针对Kindle Fire上的历史记录意图设置。在其他 android 设备上,此代码运行良好。也许还有其他方法可以避免处理历史意图?

4

1 回答 1

0

Kindle 不支持所有安卓操作,查看https://developer.amazon.com/sdk/fire/intents-supported.html

于 2013-10-08T17:23:35.523 回答