Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个非常简单的小部件,它允许用户重新配置小部件并选择一个新笔记。如果我之前打开了我的活动并点击了主页按钮,然后单击配置按钮,它将重新打开我的应用程序,对话框浮动在顶部。我试图清除顶部标志,但它似乎不起作用。有没有其他人以前看过这个或者知道我错过了什么?
setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
我终于找到了一个类似的帖子。抱歉重复了。如果其他人遇到此问题,请访问此链接:
重新启动我的小部件配置活动在后台启动我的应用程序
android:allowTaskReparenting="false" android:taskAffinity=""