直接代码:

1
2
3
4
String s = String.format("http://maps.google.com/maps?f=d&saddr=jiangbei,chongqing&daddr=shapingba,chongqing&hl=en");
Uri uri = Uri.parse(s);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);