how can i get the name of the device in my source code.
i want do adjust the watchface to compatible devices like fenix3, vivoactive and so on.
thanks
There are a couple of options:
- If using the xml layout system, you can specify resource folders with layout for each device / family
- If using dc to draw, you could use the screenShape to determine your layout
- Also when using dc to draw, you could get the part number and go from there.
- Another option when using dc to draw, is to specify resource folders with string resource for each device, and save the device name in a string resource
For resource folders, check out Overriding Resources in the Programmer's guide in your SDK folder.