how to pass GeoPoint with intent

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

how to pass GeoPoint with intent

Postby damninggodson » Fri Apr 02, 2010 3:46 am

Hi guys:
i wanna pass a GeoPoint from an Activity to another MapActivity, and call MapController.animateTo() in the MapActivity to show the map around the GeoPoint. But problems occured:

1.how can i pass GeoPoint with intent?

2.if i can't, is it possible to divide the GeoPoint to 2 strings representing the X and Y coordinates seperately of the GeoPoint?

3.if the method above seems stupid, do u have better suggestions to meet my demand?

THX A LOT.
damninggodson
Developer
Developer
 
Posts: 36
Joined: Thu Mar 25, 2010 3:36 am

Top

Postby damninggodson » Sat Apr 03, 2010 6:14 am

any help? :( :( :(
damninggodson
Developer
Developer
 
Posts: 36
Joined: Thu Mar 25, 2010 3:36 am

Postby nicholas.hauschild » Mon Apr 05, 2010 5:27 am

Here is the Javadoc for GeoPoint

You could break the geopoint into two ints, representing the latitude and longitude in microdegrees, and pass those in the intent.
nicholas.hauschild
Master Developer
Master Developer
 
Posts: 310
Joined: Fri Dec 04, 2009 4:50 am

Postby damninggodson » Mon Apr 05, 2010 8:24 am

nicholas.hauschild wrote:Here is the Javadoc for GeoPoint

You could break the geopoint into two ints, representing the latitude and longitude in microdegrees, and pass those in the intent.


so this is point 2 in my 1st post...
THX A LOT!
damninggodson
Developer
Developer
 
Posts: 36
Joined: Thu Mar 25, 2010 3:36 am

Postby pskink » Mon Apr 05, 2010 8:38 am

damninggodson wrote:
nicholas.hauschild wrote:Here is the Javadoc for GeoPoint

You could break the geopoint into two ints, representing the latitude and longitude in microdegrees, and pass those in the intent.


so this is point 2 in my 1st post...
THX A LOT!


quite close: you don't need to pass two strings, you can just pass two ints
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: Google [Bot] and 2 guests