Ok, The mission isn't going too well.
Ran out of ideas all ready. This is pretty much all the documentation we have as creating Wear apps is still very new and so no examples / tutorials out there.
https://developer.android.com/training/wearables/apps/packaging.html
So here is what I have done so far. Just a quick note, I'm not sure if this is an issue with the IDE compressing assets (See the bottom of the above page).
I created a very simple project with just a label and edit text on an activity. I have installed this directly on a Wear AVD through adb. Project attached as 'wearable_app.zip'.
I then create another simple project, this will be the phone-side app. I copy the wearable_app.apk to phone-side project \res\raw and make it read only.
I created a new file - phone-side project \res\wearable_app_desc.xml and added the following
I then added the following to phone-side project manifest editor
This project is also attached as wearable_test.zip
OK, that's it. I install. It goes fine on phone, no errors or anything but nothing on the Wear watch.
I have tried different variants of package names in the xml and manifest, etc. and also cleaned the project.
I think this may be one for @Erel but as always anyone can join in. I am wiling to try anything.
Going to sleep on this now and have another couple of hours in the morning.
Thanks all...
Ran out of ideas all ready. This is pretty much all the documentation we have as creating Wear apps is still very new and so no examples / tutorials out there.
https://developer.android.com/training/wearables/apps/packaging.html
So here is what I have done so far. Just a quick note, I'm not sure if this is an issue with the IDE compressing assets (See the bottom of the above page).
I created a very simple project with just a label and edit text on an activity. I have installed this directly on a Wear AVD through adb. Project attached as 'wearable_app.zip'.
I then create another simple project, this will be the phone-side app. I copy the wearable_app.apk to phone-side project \res\raw and make it read only.
I created a new file - phone-side project \res\wearable_app_desc.xml and added the following
B4X:
<wearableApp package="barxdroid.wearable_app">
<versionCode>1</versionCode>
<versionName>1.0</versionName>
<rawPathResId>wearable_app</rawPathResId>
</wearableApp>
I then added the following to phone-side project manifest editor
B4X:
AddApplicationText(
<meta-data android:name="barxdroid.wearable_app"
android:resource="@xml/wearable_app_desc"/>
)
This project is also attached as wearable_test.zip
OK, that's it. I install. It goes fine on phone, no errors or anything but nothing on the Wear watch.
I have tried different variants of package names in the xml and manifest, etc. and also cleaned the project.
I think this may be one for @Erel but as always anyone can join in. I am wiling to try anything.
Going to sleep on this now and have another couple of hours in the morning.
Thanks all...
Attachments
Last edited: