2011-07-25 73 views
0

我正在使用以下代碼在地圖上標記標記。請指導我如何從代碼中將當前位置的方向線繪製到此點。像從源目的地指向的線google map directons

String loc =""; 
     String city ="s"; 
     String address = loc + city 
     + "; 
    String cleanAddress = address.replace(",", ""); 
    cleanAddress = cleanAddress.replace(' ', '+'); 

    try { 
     Intent geoIntent = new Intent("android.intent.action.VIEW", android.net.Uri.parse("geo:0,0?q=" 
      + cleanAddress)); 

     startActivity(geoIntent); 
    } 

回答