A standard intent to pick a location is probably not available in this
SDK but you still can "easily" implement it:
- Extend MapActivity and edit the manifest file to include an intent
filter with ACTION_PICK and the geo pattern.
- Use a custom Overlay which overrides onTap (GeoPoint,MapView): when
you click somewhere on the map this method will be called with the
coordinates you clicked. Call setResult with theses coordinates then
finish() and that should do the trick.


On 27 août, 17:02, Magellan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm trying to call Map Application trought an Intent, to pick a point
> on the map, and return it to my own application.
> The needs are :
>
> - setting the current location of the map (to center it on, on Map
> application startup)
> - the user will pick a new location on the map
> - the Map application could exit and return the point.
>
> Is there any way to do this with a simple Intent ? I saw an Intent
> ACTION_VIEW with an uri like "geo:x,y" that can only show a map...
> With ACTION_PICK, my application crashes.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to