如何在android中调用BroadcastReceiver中的浏览器

如何在android中调用BroadcastReceiver中的浏览器,android,Android,在android中如何在BroadcastReceiver中调用浏览器?有人能帮我吗?我尝试使用设置意图的标志。它不会说错误 Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? 提前感谢

在android中如何在BroadcastReceiver中调用浏览器?有人能帮我吗?我尝试使用设置意图的标志。它不会说错误

Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

提前感谢

错误是不言自明的。通过
setFlags()
方法将
Intent.FLAG\u ACTIVITY\u NEW\u TASK
添加到
Intent


正如我所说,从
BroadcastReceiver
调用
startActivity()
可能不是用户想要的。

感谢您的回复,这对我帮助很大