[英]How can I connect to a non-default version of an App Engine app through the Cloud Endpoints client library for Android?
The App Engine backend of my Android app is actually a non-default version of an App Engine project. 我的Android应用程序的App Engine后端实际上是App Engine项目的非默认版本。 However, if I connect to the App Engine backend from Android device through the Cloud Endpoints client library that is auto-generated from the backend, I see that the results retrieved indicate that I get connected to the default version of the App Engine project.
但是,如果我通过从后端自动生成的Cloud Endpoints客户端库从Android设备连接到App Engine后端,则会看到检索到的结果表明我已连接到App Engine项目的默认版本。
How can I make the Android application connect to the non-default version? 如何使Android应用程序连接到非默认版本?
As always, thanks so much for your valuable advice! 与往常一样,非常感谢您的宝贵建议!
我相信您可以在创建端点客户端时通过使用构建器上的setRootUrl方法使用特定于版本的url进行连接?
myEndpointBuilder.setRootUrl("https://<versioned-address>/_ah/api/")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.