[英]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 API的runQuery方法在数据存储区中查询实体。
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.