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

 

Uri uri = Uri.parse("http://maps.google.com/maps");

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);


 

你可能感兴趣的:(Google)