I am having trouble getting the wearableListener to work on the phone side using datamaps. The datalayer method (DL_DataChanged) works fine, but my WL_DataChanged is not getting called. I have tried initializing it in the service's create routine and in it's start routine. My Manfest entry is as follows:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information:
http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="20" android:targetSdkVersion="21"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
AddApplicationText(
<meta-data android:name="com.google.android.gms.version"
android:value="
@Integer/google_play_services_version" />
<meta-data android:name="com.google.android.wearable.beta.app"
android:resource="@xml/wearable_app_desc" />
)
'this creates the internal service
AddApplicationText(
<service android:name="barxdroid.wearabledatalayer.ListenerService"
android:label="Wearable Listener">
<intent-filter>
<action android:name="com.google.android.gms.wearable.BIND_LISTENER" />
</intent-filter>
</service>)
Any suggestions?
Thanks,
Gary