onClick事件中点击跳转新的activity提示FLAG_ACTIVITY_NEW_TASK的奇怪bug

Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag

我在LinkMovementMethod 

onClick事件中点击跳转新的activity

一直闪屏提示

requires the FLAG_ACTIVITY_NEW_TASK flag

但其实解决方法是把

return false;
改为
return true;


posted @ 2024-06-04 10:58  only_books  阅读(2)  评论(0编辑  收藏  举报