Android Question Creating and Running a Wearable App

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

Just trying to learn how to develop apps for Android wear devices..

1. It seems that the wear device connects to the PC just like a phone or tablet.
Would you say that if I had a wear device paired to a phone and that phone has the B4A-Bridge installed and connected to B4A it will allow me to push apps to the wear device when I run the app ? (not sure how B4A or even Android knows to send the app to the wear device and not just run it on the phone?)

Any ideas on how to send the app to the wear device and not the phone ?


2. Looking through the Android developer site it says that you need to create 2 activity's (one for the Phone and one for the wear device)

So far that's easy to do.

But then when you go to run it how does it know which activity is used for the phone and which one to use for the wear device ?


3. The Android developer site also says: "When you're ready to publish your app to users, you embed the wearable app inside of the handheld app. When users install the handheld app from Google Play, a connected wearable automatically receives the wearable app."

How do you embed the wearable app inside the handheld app ?

This is the site I have been looking at:
http://developer.android.com/training/wearables/apps/creating.html#CreateProject

Anyone been able to use B4A to develop wearable apps? If so can you share how you managed to connect to the wearable device and how to create the activity for the device.

I know you would make the phone manage all the heavy lifting such as network traffic and you would just send messages to the wear device, but I would like to create a little app that runs on the wear device.

Is there a trick to it in B4A ? (A 'hello world' demo would be great as well for this)
 

Theera

Well-Known Member
Licensed User
Longtime User
Android wear platform meant only supported watch device,I need to know that it cover google glass or something alike too,don't it?
 
Upvote 0

aaronk

Well-Known Member
Licensed User
Longtime User
Android wear platform meant only supported watch device,I need to know that it cover google glass or something alike too,don't it?
There are now many threads starting to popup about Android wear, and I am going to say this thread is now old since there are some newer threads that give some hints on how to developer for the platform.

B4A now has a lib for Google Glass, just need to use the search up the top and you should find what you are looking for..
http://www.b4x.com/android/forum/threads/google-glass-library.40848/#content

As for Wear (watches) then you may want to follow this thread and I am sure there will be a update on when someone works out how to send data between the watch and app etc:
http://www.b4x.com/android/forum/threads/the-next-step-on-wearables.43887/
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…