【发布时间】:2013-04-10 05:26:14
【问题描述】:
我在APPWIDGET_CONFIGURE注册了一个活动:
<activity android:name="com.tahanot.activities.NearbyStops">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter>
</activity>
但是,此活动的行为与预期不同。它在现有堆栈内打开,当我按下后退按钮时,它会将我带到其他活动而不是关闭任务。理想情况下,我希望 APPWIDGET_CONFIGURE 意图包括 FLAG_ACTIVITY_NEW_TASK 和 FLAG_ACTIVITY_MULTIPLE_TASK。
是否可以在AndroidManifest.xml 中指定标志,如果不能,您会建议什么解决方法?
【问题讨论】:
标签: android android-intent android-widget android-activity intentfilter