简体   繁体   English

如何在没有App Engine的情况下在Android中获取Google Cloud Datastore实体?

[英]How to get a Google Cloud Datastore entity in Android without App Engine?

Is it possible? 可能吗? I have been searching in the Google Cloud documentation and all around the internet, but found nothing . 我一直在Google Cloud文档以及整个互联网中进行搜索,但未找到任何内容 I need to read some values from the Datastore in an Android app made with Android Studio. 我需要从使用Android Studio制作的Android应用中的数据存储中读取一些值。 I tried the Cloud Datastore library but the Gradle build crashes , and tried to use it with App Engine unsuccessfully. 我尝试了Cloud Datastore库,但是Gradle构建崩溃了 ,并尝试将其与App Engine一起使用失败。

I want to use this database or a similar database, but not Firebase because it would exceed the limits for sure, so you can suggest other databases. 我想使用此数据库或类似数据库,但希望使用Firebase,因为它肯定会超出限制,因此您可以建议其他数据库。

You can always query the Datastore for entities using the REST API 's runQuery method. 您始终可以使用REST APIrunQuery方法在数据存储区中查询实体。

If you were willing to build an App Engine backend, you could definitely use Cloud Endpoints to allow your android app to use it and the Datastore. 如果您愿意构建App Engine后端,则可以肯定使用Cloud Endpoints来允许您的android应用程序使用它和数据存储区。 The Cloud Datastore Client Libraries do not work on Android but they will work on App Engine (and in other environments). Cloud Datastore客户端库无法在Android上运行,但可以在App Engine(和其他环境)上运行。

暂无
暂无

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

相关问题 如何在后端而不是App Engine数据存储区中创建与Google Cloud SQL连接的Android应用程序? - How to create an Android app connected with Google Cloud SQL in the backend instead of the App Engine datastore? 如何从Android应用程序和django网站访问一个Cloud Datastore(Google App Engine)? - How to access one Cloud Datastore(Google App Engine) from Android app and django-website? Google App Engine-数据存储-获取实体,而不是按其关键 - Google App Engine - Datastore - Get an entity, not by it's key GCM还是Google Cloud Datastore或Google App引擎? - GCM or Google Cloud Datastore or Google App engine? 如何使用带有云端点的Google App Engine从Android设备上的数据存储中检索数据? - How to retrieve data from the datastore on Android device, using Google App Engine with Cloud Endpoints? 如何通过Google Cloud Endpoints将两个Android应用连接到同一App Engine数据存储区? - How to connect two Android apps through to the same App Engine Datastore through Google Cloud Endpoints? 带有Google Cloud Datastore的Android应用 - Android App with Google Cloud Datastore 带有Cloud SQL或数据存储的Android App Engine - Android App Engine with Cloud SQL or Datastore 如何从Android中的Google App Engine数据存储区中获取数据 - how to fetch data from google app engine datastore in android 将 android 应用程序与谷歌应用程序引擎数据存储链接 - linking android application with google app engine datastore
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM