Skip to content Skip to sidebar Skip to footer

Android Wear - Unexpected Error Code 16

I have an app that uses Android Wear API. To create it I followed the guides here: https://developer.android.com/training/building-wearables.html I access the wearable APIs using:

Solution 1:

When setting up my Android Wear client, I had missed a wear specific part. See:

https://developer.android.com/google/auth/api-client.html#Starting

"Access the Wearable API"

// Connection failed listener method for a client that only// requests access to the Wearable API@OverridepublicvoidonConnectionFailed(ConnectionResult result) {
    if (result.getErrorCode() == ConnectionResult.API_UNAVAILABLE) {
        // The Android Wear app is not installed
    }
    ...
}

Adding this in to my onConnectionFailedListener solved my problem. The Android Wear app was not installed on those devices.

Post a Comment for "Android Wear - Unexpected Error Code 16"