【问题标题】:How to get a Google Cloud Datastore entity in Android without App Engine?如何在没有 App Engine 的情况下在 Android 中获取 Google Cloud Datastore 实体?
【发布时间】:2018-02-11 12:09:30
【问题描述】:

有可能吗?我一直在 Google Cloud 文档和互联网上进行搜索,但发现什么都没有。我需要从使用 Android Studio 制作的 Android 应用程序中的数据存储区中读取一些值。我尝试了 Cloud Datastore 库,但 Gradle 构建崩溃,并尝试将其与 App Engine 一起使用,但未成功。

我想使用这个数据库或类似的数据库,但不是 Firebase,因为它肯定会超出限制,所以您可以推荐其他数据库。

【问题讨论】:

    标签: android android-studio google-app-engine google-cloud-datastore google-cloud-endpoints


    【解决方案1】:

    您始终可以使用REST APIrunQuery 方法查询数据存储中的实体。

    如果您愿意构建 App Engine 后端,您绝对可以使用 Cloud Endpoints 来允许您的 android 应用使用它,而 Datastore. The Cloud Datastore Client Libraries 在 Android 上不起作用,但它们可以在 App Engine 上运行(以及其他环境)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-21
      • 1970-01-01
      • 2014-04-10
      • 1970-01-01
      • 2010-10-19
      • 2017-08-04
      相关资源
      最近更新 更多