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

时间:2011-08-05 14:37:57

标签: android

如何在android中调用BroadcastReceiver中的浏览器?谁能帮我?我尝试使用为intent设置标志。这不是说错误

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?

提前致谢

1 个答案:

答案 0 :(得分:1)

错误不言自明。通过Intent.FLAG_ACTIVITY_NEW_TASK方法将Intent添加到setFlags()

noted中的another of your questionsstartActivity()BroadcastReceiver的调用可能不是用户想要的。