读书人

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

发布时间: 2012-09-04 14:19:30 作者: rapoo

在程序中,打开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);

读书人网 >移动开发

热点推荐