我有一系列地址,我想在地图上显示它们(我知道方向是不可能的)。我使用 INTENT 但它只显示 1 个地址!如何让它显示所有地址这是我的代码:
for(int j=0; j<jarElements.length(); j++){
JSONObject distanceObj = jarElements.getJSONObject(j).getJSONObject("distance");
distanceStr = distanceObj.getString("value");
Log.v("finally getting distance : ", distanceStr);
buff.append("Distace from the location " + Addresses[j] + " is : " + distanceStr).append("\n").append("\n");
Intent is = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr=" + Addresses[j] + "&daddr=" + distanceStr));
startActivity(Is);