【问题标题】:Google Play Services partial integrationGoogle Play 服务部分集成
【发布时间】:2013-07-24 17:23:34
【问题描述】:

我已将 Google Play 服务集成到一个 Android 应用中,该应用为我的 APK 文件添加了 500K,我需要 Google Pay 服务提供的只是 +1 网址的能力。

有没有办法缩小集成范围并将对 APK 大小的影响降至最低?

【问题讨论】:

  • 也对这个问题的答案感兴趣。我正在考虑使用 Play Services,但考虑到我的应用程序现在只有 120 KB,我不想仅仅为了同步 SQLite 数据库而添加 500 KB...

标签: android google-plus google-play-services google-plus-one


【解决方案1】:

我不知道在不使用 GMS 库的情况下 +1 网址的明确方式。您可以通过传递可能对您有帮助的 URL 手动生成共享。举个例子:

https://plus.google.com/share?url=http://example.com/

将为站点http://example.com 生成一个共享链接。在 Android 中,您可以通过构建链接然后鼓励用户单击它或通过将共享按钮与打开 URL 进行共享的操作相关联来触发共享。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-10-10
    • 1970-01-01
    • 2014-10-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多