I am trying to get GPS coordinates from Android wear watch (moto 360 sport). As a first step towards it, I need to connect to GoogleApiClient. Below is the code for the same. But the connection to GoogleApiClient is always failing with the error message.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
setAmbientEnabled();
mContainerView = (BoxInsetLayout) findViewById(R.id.container);
mTextView = (TextView) findViewById(R.id.text);
mClockView = (TextView) findViewById(R.id.clock);
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addApi(Wearable.API)
.addApi(LocationServices.API)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.build();
}
@Override
protected void onResume() {
super.onResume();
mGoogleApiClient.connect();
}
@Override
protected void onPause() {
super.onPause();
mGoogleApiClient.disconnect();
}
Connection Failed=>ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
I looked at this. The accepted answer did not work for me. The google play services version of my mobile phone is 9.4.52(440-127739847) and the google play services in my watch is 8.7.01(2590918-534). I tapped on this version in my watch. But it checked for updates did not show up anything (Do I need wifi in my watch to check for updates and install the updates?). Since the accepted answer did not work, I moved on to the last answer of that thread. So I downloaded 8.7.01 (2590918-440) (though the last 3 numbers doesn't match). when I tried to install this apk in my mobile, I got Failure [INSTALL_FAILED_VERSION_DOWNGRADE] as my version of play services in my mobile is higher than that of watch. How should I proceed with this issue?
Your help is much appreciated. Thanks