我能夠與Android - 如何在駕駛模式中啓用Google地圖意圖?
Uri location = Uri.parse("geo:0,0");
Intent mapIntent = new Intent(Intent.ACTION_VIEW, location);
startActivity(mapIntent);
推出谷歌地圖的意圖如何可以啓動在駕駛模式的意圖(無目的地,除非事先在地圖設置),這樣它看起來像下面的截圖?
我試着設置mode=driving
但只開啓普通地圖中選擇「驅動」選項卡:
Uri location = Uri.parse("geo:0,0?mode=driving");
你是對的,它需要的目標使用travelmode =駕駛。我想知道是否有辦法在沒有目的地的情況下進入駕駛模式,如下所述:http://fieldguide.gizmodo.com/google-maps-driving-mode-is-your-essential-in-car-ai- 1776306949 –