AIM : To show Driving Directions in a ListView in Android .
Solution:
Generally,to see driving directions in a browser we use query as follows:
"http://maps.google.com/maps?&saddr=15.653293,78.809369&daddr=15.612456,78.706055"
We use the same url in mobile also .
the code snip is:
Uri uri =Uri.parse("http://maps.google.com/maps?&saddr=15.653293,78.809369&daddr=15.612456,78.706055");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
This will open intent chooser to view like open this either in Browser or Google Map.If you select Google Map it will open the Map and fetch the driving directions in a listView.
Friday, August 6, 2010
Subscribe to:
Post Comments (Atom)
Android Developers Blog
- The Third Beta of Android 16 - 3/13/2025
- #TheAndroidShow: Multimodal for Gemini in Android Studio, news for gaming devs, the latest devices at MWC, XR and more! - 3/13/2025
- Multimodal image attachment is now available for Gemini in Android Studio - 3/13/2025
- Building excellent games with better graphics and performance - 3/13/2025
- Making Google Play the best place to grow PC games - 3/13/2025
I'm amazed, I have to admit. Seldom do I encounter a blog that's equally educative and interesting, and without a doubt, you have hit the nail on
ReplyDeletethe head. The problem is an issue that too few men and women are speaking intelligently about.
I'm very happy I found this in my hunt for something concerning this.
My page: bmi calculator women
my webpage > bmi calculator women
Attractive sесtion of content. I јust stumbled uρon your sіte and in accessіon capital tο assегt thаt I get actually enjoyed acсοunt уοur blog posts.
ReplyDeleteAnyωаy I'll be ѕubscribing to youг
augment and even І achіevement you access consіstently fast.
Alsο visіt my blog megapolis cheat