I needed to open some turn-by-turn directions in Android. I did the following with Mono for Android, and this code worked:
String url = String.Format("http://maps.google.com/maps?saddr={0},{1}&daddr={2}", lat, lon, dAddr);
Intent intent = new Intent(Android.Content.Intent.ActionView, Android.Net.Uri.Parse(url));
StartActivity(intent);
In this code, I needed to get some directions from the current latitude and longitude.
I'll be speaking at Mobile Connections in Las Vegas, NV. I'll be speaking on:
- Programming Android with MonoDroid.
- Mobile Web Apps with HTML5.
If you are there, please look me up.
Here is my presentation on HTML5 Applications from AnDevCon.
I hope you enjoy the source and the pptx file. It has info about:
- ASP.NET Web Pages.
- Razor.
- jQuery.
- jQuery Mobile.
I'm speaking on Wednesday at the Code Project Mobile Virtual Conference on the subject of Android Programming for .NET/C# Developers with MonoDroid. Check it out, I think its free. Hopefully, you'll find this helpful in your mobile pursuits.