Android Question Looking for android wear watchface

jhd

Member
Licensed User
I all, I m looking for a b4a sample to develop an android wear watch face.

I search the forum but i dont find any one.

If someone can help me I appreciate it

Thanx in advance.

Regards
 

Raywingit

Member
Licensed User
Did you (or anyone) ever get an image to the watch using B4A ?

I have been looking for a method to push an image to a watch, investigated Studio example apps, looks like notifications "big picture" might work, but I have not had any luck in duplicating the process in B4A.

...Ray
 
Upvote 0

Raywingit

Member
Licensed User
Notification to watch worked for me, after finding the Notifications thread in this forum.
Although I determined that the notification method is not suitable for my app, here is the code that worked.

In Libraries:
NotificationBuilder(version 3.10)

In Globals:
Dim nb As NotificationBuilder
Dim nbBigPictureStyle As NotificationBigPictureStyle
Dim BigPicture As Bitmap

Sub Notify
nb.Initialize
nb.SmallIcon = "icon"
nb.AutoCancel = True
nbBigPictureStyle.Initialize
nbBigPictureStyle.BigPicture = BigPicture
nb.SetStyle(nbBigPictureStyle)
nb.CustomVibrate = Array As Long(0, 0, 0, 0)
nb.Notify(1)
End Sub

Then within the app when I wanted to sent out the notification:
BigPicture.Initialize(File.DirAssets, "1000.png") ' - 1000 is the background picture
Notify

A sequence of images could be sent at intervals. Unfortunately I was just interested in displaying an
image on the watch, and the notification method has a white card filling half the screen. It could be manually
swiped off, so full image could be seen. As a demo it was useful.
 
Upvote 0
Top