简体   繁体   中英

Android - Is there a way to specify a location when sharing into Google+ app?

I am developing an app that allows the user to share an image to Google+. When I share the image into Google+ from my app, I want to be able to specify the location associated with the image (not the user's present location as set by Google+). Is there a way to do this? Ie, by setting some extra? Thanks!

When ever user takes an image thruogh your app,take the corresponding Geopoints simultaniously and save it to a db. Whenever the user try to upload the photo take the corresponding Geopoints associated with the imagepath and post it to G+ I hope this will be a good possibility to solve this problem.

If I remember correctly, images shared with Google+ need to be done via a ContentProvider. If you aren't already, can you add the LATITUDE and LONGITUDE columns to your content provider?

http://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns.html

Currently, it is not possible to prepopulate the "Location" portion of a post on behalf of the user. If the user previously used the location field, it will be enabled for subsequent posts. If they turned it off, they would have to reenable it for subsequent posts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM