Android Question [Wearable DataLayer] is the unique way to play with wearables?

Jerez

Active Member
Licensed User
Longtime User
hii,

Sorry for my noob question but,

[Wearable DataLayer] is the unique way to play with wearables?

Can i create a 320x320 app and run on my Moto 360?
Can i use listview? Spinner? and other controls?

I have a webservice... and Moto 360 has WIFI... (and Asus come with 3G, then i don't need a handheld) so can i use HttpUtils2 directly?

thanks for advise!

moto-360-review-sg-6-600x368.jpg
 

canalrun

Well-Known Member
Licensed User
Longtime User
Yes, You probably found the library from barx and the thread:
https://www.b4x.com/android/forum/threads/wearable-datalayer.49968/

If you look on the fourth and fifth pages, around post #80 or so, I have two examples. The first example has a companion app for the mobile (phone). The second example is a strictly wearable app that downloads directly to the watch and has no companion app for the mobile.

Everything I have tried from B4A has worked on the watch – obviously the screen size limits some of the views.

Barry.
 
Last edited:
Upvote 0

Jerez

Active Member
Licensed User
Longtime User
Yes, You probably found the library from barx and the thread:
https://www.b4x.com/android/forum/threads/wearable-datalayer.49968/

If you look on the fourth and fifth pages, around post #80 or so, I have two examples. The first example has a companion app for the mobile (phone). The second example is a strictly wearable app that downloads directly to the watch and has no companion app for the mobile.

Everything I have tried from B4A has worked on the watch – obviously the screen size limits some of the views.

Barry.
thanks!
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
The Wearable DataLayer is just that, a Data Layer. It's is used for the communication between the Wearable and the Mobile device, if there is no need to data transer of any kind then you can simply create the app, package it correctly and install on the mobile. The Wear companion app will install automatically.
 
Upvote 0

Jerez

Active Member
Licensed User
Longtime User
The Wearable DataLayer is just that, a Data Layer. It's is used for the communication between the Wearable and the Mobile device, if there is no need to data transer of any kind then you can simply create the app, package it correctly and install on the mobile. The Wear companion app will install automatically.


thanks Barx! I want to extend my home automation app to wearables... do you think is better to build a phone dependant app? thinking that today most wearables has no wifi or 3g? Maybe it's possibly create an app that, if there is no wifi in the wearable use the handheld?

Maybe this DataLayer is or will be available for B4i and can communicate an Android wear with an iPhone? :D

excuse my english and thanks for the advise
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
thanks Barx! I want to extend my home automation app to wearables... do you think is better to build a phone dependant app? thinking that today most wearables has no wifi or 3g? Maybe it's possibly create an app that, if there is no wifi in the wearable use the handheld?

Maybe this DataLayer is or will be available for B4i and can communicate an Android wear with an iPhone? :D

excuse my english and thanks for the advise

The whole idea and Android Wear is to be an extension of the mobile device, and so app have a mobile part and a wearable part, that is why you have to package them how you do. there isn't a way to install from the Play Store without installing to mobile.

As for B4I, there are a few setbacks there.
1) Google haven't yet released the functionality for IOS although it is supposed to be close to release
2) Google haven't yet released a SDK for IOS
3) I personally don't have b4i, an IOS device, account, etc, etc (if 1 and 2 are achieved then I am quite happy for anyone to look at my code to try create the b4i counterpart.
4) I'm sure there is something else, but cannot think of it right now
5) See 4
 
Upvote 0

Vincenzo Fabiano

Member
Licensed User
Longtime User
thanks Barx! I want to extend my home automation app to wearables... do you think is better to build a phone dependant app? thinking that today most wearables has no wifi or 3g? Maybe it's possibly create an app that, if there is no wifi in the wearable use the handheld?

Maybe this DataLayer is or will be available for B4i and can communicate an Android wear with an iPhone? :D

excuse my english and thanks for the advise

Jerez
I did some tests with httputils but I could not make it work ... The app is installed correctly on both devices, but when I press the button to download the information on a page, nothing. Obviously everything works properly on smartphones .. You have got to try and you manage to make it work?

PS. Mine is an LG watch urban and tests I made with wifi enabled
 
Upvote 0
Top