I\'m trying to set up a connection between Android Wear and an Android phone. The googleApiClient fails to connect, and returns a SERVICE_VERSION_UPDATE_REQUIRED status code
Looks like putting the googleClient.connect() on onStart() solves the issue:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_test);
// Build a new GoogleApiClient
checkIfGoogleApiClientExists();
googleClient = new GoogleApiClient.Builder(this)
.addApi(Wearable.API)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
}
@Override
protected void onStart() {
Log.i(LOG_TAG,"entered onStart");
super.onStart();
googleClient.connect();
}