我的主要活动中有以下简单方法。
private void showMap(String name ) {
String thePlace = name.replaceAll(" ", "+");
Intent intent= new Intent(android.content.Intent.ACTION_VIEW,
Uri.parse("geo:0,0?q=" + thePlace+ "" ));
startActivity(intent);
}
在我的清单中
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.INTERNET" />
但是当我在模拟器中运行应用程序时,它崩溃了,根据日志,它说
No activity found to handle the intent
有什么我做错了吗?