سؤال

I am working on a Chromecast application on Android. I can't find any documentation on what the status codes mean.

Cast.CastApi.sendMessage(mApiClient, mNamespace, message).setResultCallback(new ResultCallback<Status>() {
    @Override
    public void onResult(Status result) {
        int code = result.getStatusCode(); //What do these codes mean?
    }
});

Cast.CastApi.launchApplication(mApiClient, mApp_id, false).setResultCallback(new ResultCallback<Cast.ApplicationConnectionResult>() {
    @Override
    public void onResult(ApplicationConnectionResult result) {
        int code = result.getStatus().getStatusCode(); //What do these codes mean?
    }
});

When trying to send a message I'll sometimes get status code 7. What does this actually mean?

هل كانت مفيدة؟

المحلول

That means network error, see this java reference.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top