问题描述:
使用Intent调用地图功能时,强制使用Google Map打开
解决方法:
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setClassName("com.google.android.apps.maps",
"com.google.android.maps.MapsActivity");
startActivity(intent);
问题描述:
使用Intent调用地图功能时,强制使用Google Map打开
解决方法:
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setClassName("com.google.android.apps.maps",
"com.google.android.maps.MapsActivity");
startActivity(intent);