在程序中,打开google手机自带google map

Uri uri = Uri.parse("http://maps.google.com/maps?q=(%E6%A5%BC%E5%A4%96%E6%A5%BC)&z=21");
Intent intent = new Intent(Intent.ACTION_VIEW,uri);
ComponentName comp = new ComponentName("com.google.android.apps.maps","com.google.android.maps.MapsActivity");
intent.setComponent(comp);
startActivity(intent);

你可能感兴趣的:(java,android,Google)