Android Wear: Unable to connect to GmsClient com.google.android.gms.LIGHTWEIGHT_INDEX -


i working data layer on android wear, trying send dataitem (using data api) wearable (moto 360 gen1) mobile devices.

however, there no sign of error or connection failed, , data not sent. message error received is

e/gms client: unable connect service: com.google.android.gms.icing.lightweight index service'

in mobile:

i have created wearable listener service receive data in ondatachanged(dataeventbuffer dataevents)

android manifest

<service         android:name=".listenerservice">     <intent-filter>         <action android:name="com.google.android.gms.wearable.bind_listener" />     </intent-filter> </service> 

in wear activity:

header of activity looks like

public class mainactivity extends wearableactivity implements     googleapiclient.connectioncallbacks,     googleapiclient.onconnectionfailedlistener{ 

i have googleapiclient in oncreate(..) function:

mgoogleapiclient = new googleapiclient.builder(this)             .addapi(wearable.api)             .addconnectioncallbacks(this)             .addonconnectionfailedlistener(this)             .addapi(appindex.api).build();  mgoogleapiclient.connect();  @override public void onconnected(bundle bundle) {     log.d("android wear connection", "" + mgoogleapiclient.isconnected());      //data layer function uses data map     sendamplitudedb(10, 2300); } 

i stucked , no clue why mobile device not receiving data items, or why wearable cannot connect google api client... please help!

also, have implemented same code following git repo: https://github.com/larkspurca/wearabledatamap

make sure service tag within application tag in manifest, perhaps?


Comments

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -