Select location intent

7 views
Skip to first unread message

Peli

unread,
Oct 17, 2009, 4:05:27 PM10/17/09
to OpenIntents
Does anyone know of an application that provides an intent to select
any location on a map and return its coordinates?

See http://www.openintents.org/en/node/290

If not, it sounds like something we could create :-)

Peli

Friedger Müffke

unread,
Oct 17, 2009, 5:09:21 PM10/17/09
to openi...@googlegroups.com
The intent should be PICK geo:0.0

"
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.
"

Should be a no-brainer :-) However, a location manager would be good,
where you can pick a location from the map, from contact or the like.
There is already some code around...


Friedger

2009/10/17 Peli <peli...@googlemail.com>:
--
OpenIntents UG (haftungsbeschränkt)
Suarezstraße 41
14057 Berlin
tel:+49 30 60982220
mailto:in...@openintents.biz
enum:+493060982220

Vertretungsberechtigter Geschäftsführer: Friedger Müffke
Registergericht: Amtsgericht Berlin (Charlottenburg)
Registernummer: HRB 118597
Reply all
Reply to author
Forward
0 new messages