Hi!

I'm trying to finish my app, but I have an small problem (I think) I hope 
anybody here, could give me a hand.

In my itemezedoverlay, I have this function:

*protected boolean onBalloonTap(int i, OverlayItem item) { *
* *
* Toast.makeText(c, "Calculando ruta... " ,Toast.LENGTH_LONG).show(); *
* *
* double latitudo = 43.250064;*
* double longitudo = -5.774496;*
* *
* double latitudd = 43.223914;*
* double longitudd = -5.781582; *
* *
* *
* String uri = 
"http://maps.google.com/maps?saddr="+latitudo+","+longitudo+"&daddr="+latitudd+","+longitudd+"&mode=walking";;
*
* *
* Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
Uri.parse(uri));*
* intent.setClassName("com.google.android.apps.maps", 
"com.google.android.maps.MapsActivity");*
* c.startActivity(intent);*
* *
* return true;*
*
*
*}*
*
*
As you see, if you press over a place, you execute an intent, and it calls 
routing in Gmaps. That it works perfectly, but I wanted to know how can I 
pass from my main program, as a parametrer latitudd, latitudo, longitudd 
and longitudo. 

The app should make, if you press over on balloon, the route since where 
you are (I have a location service, that it works perfectly) and until 
where you pressed (so you know both locations.

I hope anybody could understand what I'm trying to explain. So sorry, if my 
english it's not "perfect".

Cheers!

Artemio

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to