ShareLocationPlugin
ShareLocationPlugin copied to clipboard
Share button
Add a share button and a copy button to the action bar in the show location activity.

Hi, thank you for your work. I think the share button is a great addition. Will this intent offer to open the geo uri in map-applications as well? Or is this a pure text intent?
One minor detail that might sound a bit weird but can we move the copy-to-clipboard action into the overflow menu (with icon, and showAsAction="never") I feel like this is a secondary option that might have some small use cases but most users will just use the intent because intents are Androids primary way of sharing information (instead of using the clipboard)
Will this intent offer to open the geo uri in map-applications as well? Or is this a pure text intent?
That's a good question; it's a pure text URL, so unless the map app will search by lat/long, I don't think it will work. It would probably be easy to throw in whatever data map apps are expecting later (or maybe the share widget has that built in somehow?).
EDIT: After thinking about it some more, I don't think the share widget is the appropriate way to open things in a map app anyways. Maybe that would require a separate button or some other way of triggering an intent to open a map app.
One minor detail that might sound a bit weird but can we move the copy-to-clipboard action into the overflow menu
Yah, I thought something looked weird but I wasn't sure what (having a button next to the share button). Fixed.
I changed the "share" and "copy" buttons to copy a Geo URI, as that's what ends up being sent by the intent anyways, and is probably what will be most useful for eg. launching another map application as previously discussed. Also rebased and squashed.