I am developing an android app in which i want to mark some places and then trace path b/w them. like if I start my journey from A and mark it, then go to Band mark that, then C and at last when I reached my final destination. then i want to trace the path from A-B-C.... I had tried many and found that i can use url intent to do that by passing lat-long dynamically, but i want to mark random places at runtime..... now i am using this.
String uri = "http://maps.google.com/maps?f=d&source=s_d&saddr=" + 30.7353 +","+76.7911+"&daddr="+12.9833+","+ 77.5833+"+to:"+22.5697+","+88.3697;
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
startActivity(intent);
please help me out. thank.