1

尝试从我的服务打开活动时遇到以下错误。 例外是: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.sygic.aura flg=0x10000000 }

我正在尝试打开一些内部包“com.sygic.aura”,我什至不知道它是否有意图过滤器(如果没有 - 还有其他方法可以打开应用程序吗?)。

这是代码:

Intent intent = new Intent(package);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

请帮忙

4

1 回答 1

0

问题是我没有发送活动的 URL 位置:

private Uri location = Uri.parse("geo:0,0?q=1600+Amphitheatre+Parkway,+Mountain+View,+California");
Intent intent = new Intent(Intent.ACTION_VIEW, location);
intent.setPackage(defaultGpsPackage);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);

这样就可以了!

于 2013-07-27T20:21:35.317 回答