Help with coding?

Former Member
Former Member
Could anyone please tell me how to code a battery indicator on a watch face and what language you use for coding watch faces? I have got a really basic watchface with just the time displayed that I made and i would i like to learn how to do more things, any help would be much appreciated.

Kacper
  • Former Member
    Former Member over 9 years ago
    I have one more question how do I develop a watch face for more than one watch with different codes. As my vivoactive code makes the fenix 3 simulation look weird. Thanks
  • If you are using layouts, what you want to do is have different layouts for the different devices (in "resources-vivoactive" and "resources-fr230" for example. That's also how you do different languages, BTW. (resources-eng, resources-fre for example)

    See "Overriding Resources" in the CIQ Programmer's guide. (It's included with the SDK). The code stays the same, and the device specific layout knows where and how it's shown.

    If you are using just dc calls with no layouts, you can places things based on the screen dimensions and screen shape in the code. Basically, the code is used to handle the different things at runtime, but it's the same code for various devices.
  • Former Member
    Former Member over 9 years ago
    If you are using layouts, what you want to do is have different layouts for the different devices (in "resources-vivoactive" and "resources-fr230" for example. That's also how you do different languages, BTW. (resources-eng, resources-fre for example)

    See "Overriding Resources" in the CIQ Programmer's guide. (It's included with the SDK). The code stays the same, and the device specific layout knows where and how it's shown.

    If you are using just dc calls with no layouts, you can places things based on the screen dimensions and screen shape in the code. Basically, the code is used to handle the different things at runtime, but it's the same code for various devices.

    I have spent a few hours looking how to do this but i cannot find anything, im quite a noob so could someone explain how do i do this?
  • Look at the "layouts" sample in the SDK for ising layouts