简体   繁体   English

Android - 有没有办法在分享到Google+应用时指定位置?

[英]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+. 我正在开发一款允许用户与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+). 当我通过我的应用将图片分享到Google+时,我希望能够指定与图片相关联的位置(而不是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. 当用户通过您的应用程序拍摄图像时,同时采取相应的Geopoints并将其保存到数据库中。 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. 每当用户尝试上传照片时,请使用与imagepath相关联的相应Geopoints并将其发布到G +我希望这将很有可能解决此问题。

If I remember correctly, images shared with Google+ need to be done via a ContentProvider. 如果我没记错的话,与Google+共享的图片需要通过ContentProvider完成。 If you aren't already, can you add the LATITUDE and LONGITUDE columns to your content provider? 如果您还没有,可以将LATITUDE和LONGITUDE列添加到内容提供商吗?

http://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns.html 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. 如果他们将其关闭,他们将不得不重新启用它以用于后续帖子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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