I just started Google Cloud Endpoints.
When running android app, I have the following warning in logcat:
Tag: AbstractGoogleClient
Text: Application name is not set. Call Builder#setApplicationName.
Where to set Application name? Is it in android or app engine/cloud endpoints?
Endpoints is an API management system that helps you secure, monitor, analyze, and set quotas on your APIs using the same infrastructure Google uses for its own APIs.
You can only have one App Engine App per project. However you can have multiple services and multiple version for each service. Yup. You can create multiple services under the same app.
The Class com.google.api.client.googleapis.services.AbstractGoogleClient
has a function
public Builder setApplicationName(String applicationName) {
this.applicationName = applicationName;
return this;
}
When using Gradle to generate your client libraries using appengineEndpointsInstallClientLibs
You should be able to create an endpointbuilder for your endpoints:
private YourEndpoint.Builder endpointBuilder = new YourEndpoint.Builder(
AndroidHttp.newCompatibleTransport(), new JacksonFactory(),
new HttpRequestInitializer() {
public void initialize(HttpRequest httpRequest) {
}
}
);
then... to get rid of the warning:
endpointBuilder.setApplicationName("Some crazy App Name");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With