Hello to everyone
I wanted to create my own watch face so i started trying
I want to point that i have programmed before in a couple other languages so i am quite familiar
Despite that, i have some problems i can't seem to find solution for
So here we go
1)
I want to add an icon for Bluetooth
At the default watch face when you have Bluetooth off you have no icon being displayed
Once you enable Bluetooth you have an icon being displayed(Bluetooth on but not connected)
Once you connect your phone you have another icon being displayed(Bluetooth on and connected)
So i would say i have 3 "states" for the Bluetooth
I only managed to find this:
Sys.getDeviceSettings().phoneConnected
Which checks if the phone is connected or not
So i have 2 "states" and missing the one where Bluetooth is off
In short i want something to check if Bluetooth is enabled or not before checking if it is connected
How do i do that?
2)
All my code is onUpdate
Meaning that it is being updated every second
Two questions here
Is this effective?
I am asking because i am used to writing very little code at my main class and building other
files for classes functions etc rather than having one huge
Also there are data i would like to record less often
For example i would like to record steps less often for battery saving reasons
I guess i could do that in an if statement but is there anything else better?
3)
Can i test my watch face on my actual watch rather than the simulator?
If yes than how?
4)
I have seen many watch faces that have their own custom settings
I would like to do something like that as well
To start with i haven't yet found a way to check System Settings
I did find 4-5 on the api but that's it
I mean something like that:
"getDeviceSettings().is24Hour"
i would like for example to have two versions of my watch face
one with black background and one with white
Meaning i would have to change icons and colours for many graphics depending on
the backgrounds colour
Are there more on the api that i am missing?
And then how can i create my own custom settings to change from the mobile app?