Android Tutorial Creating and Packaging a Wear App

green2000

New Member
Licensed User
Longtime User
Ah...I see now and also learned about Tizen!

As Shara Tibken wrote on CNET "For now, Samsung's greatest hope for Tizen -- and the way to get the operating system into consumers' homes, almost without them even knowing it -- will come through Gear."

Thanks!!
 

aaronk

Well-Known Member
Licensed User
Longtime User
I think something has broken somewhere..

I complied my Wear app fine, and copied it to the correct folder in my phone app, but when I compile the Phone app I get this error:

B4X:
B4A version 4.30
Parsing code.  0.02
Compiling code.  0.03
 
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.  0.02
Generating R file.  Error
AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'resource' with value '@xml/wearable_app_desc').

My phone app has nothing in it (just the B4A default template) and I copied the manifest text from the sample that was posted in post 1.

Has something changed now?
 

Troberg

Well-Known Member
Licensed User
Longtime User
What is the difference between these devices and the watch form factor devices that are a full device, with phone and everything (such as many of the ones found here: http://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20150310021546&SearchText=android+watch , for example this: [url]http://www.aliexpress.com/item/High-Quality-TW810-Bussiness-Smart-Watch-Phone-Stainless-Steel-Bluetooth-Intelligent-Wristwatch-Mp3-Mp4-Player-Mini/32241933200.html).[/URL]

Are the "full devices" just like any other Android device, although with a smaller screen?
 

barx

Well-Known Member
Licensed User
Longtime User


Wear devices run a branch of the android platform put together by google to try and standardize wearables. the devices you speak of I believe basically run a full version of android (though it probably has a lot of bloat removed). There are generally no sdk's or standard communication channels implemented in such devices.
 

barx

Well-Known Member
Licensed User
Longtime User
Idon't believe the SW2 is a Wear device. the SW3 is. So n, the SW2 won't work here. Sorry
 

Mark Thorndyke

Member
Licensed User
Longtime User
Idon't believe the SW2 is a Wear device. the SW3 is. So n, the SW2 won't work here. Sorry

I had cottoned on late Thursday evening but still continued with the emulator. Has personal appeal for scenarios when play racquet sports and having a smartwatch on one player and tablet on the sidelines. Something I'd thought about early last year when getting a SW2. Time to upgrade
 

barx

Well-Known Member
Licensed User
Longtime User
Will this library work on the Samsung Gear S
Thank you!

This is for devices that run Android Wear. I believe the Gear S runs Tizen.
 

gezueb

Active Member
Licensed User
Longtime User
Hi Barx, I tried your example and it works okay on my Moto 360 II. Then I changed the code slightly of the wearable (relocated the position of the label) and recompiled it according to your tutorial. Everything works without error messages. But the wearable program still displays the same test programm as downloaded (no change). Any idea what I should do differently? Thanks for your help, Georg
 

gezueb

Active Member
Licensed User
Longtime User
Ok, found the solution: The app must be uninstalled on the mobile before recompiling the pack, then it gets also properly (re-)installed on the watch.
Georg
 

gezueb

Active Member
Licensed User
Longtime User
Dim mode / ambient mode
Is there a way to configure a wearable app so it keeps running in dim mode? I have "always on" set in the Android Wear APP, but after the time out my app stops and the last app that run previuosly is started.
 

gezueb

Active Member
Licensed User
Longtime User
Dim mode:
Found out myself: The Phonewakestate Object from the phone library works on the watch as well! Just enable "keep_awake" in the wearable app and that's it.
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
I changed the app name of the wearable, and changed barxdroid.wearable_app in the XML file to match, but now when I recompile it won't show on the watch. What am I doing wrong? (I did set the XML and APK to read only)
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…