Journey of a first time developer: Need help implementing excludeAnnotations
Hey all,
I'm still building my first WatchFace and I have been building different resolutions and can say the WatchFace is working on all devices using API 3.0 and above.
While trying to run the watchface on my old Vivoactive HR I realized that it was failing to load as it does not have var Calories = ActivityMonitor.getInfo().calories.toString(); available.
Does anyone have a Code Sample that I can use in the Monkey.Jungle to exclude Device and Device Families?
- Vivoactive HR Resource Folder: resources-rectangle-148x205
- Code That needs to be excluded :
- var Calories = ActivityMonitor.getInfo().calories.toString();
var CalorieCountDisplay = View.findDrawableById("CalorieCountDisplay");
CalorieCountDisplay.setText(Calories);
I thought it should look like this but it's clear that it's still calling the Calorie lines:
- rectangle-148x205.resourcePath = $(rectangle-148x205.resourcePath);resources-rectangle-148x205
rectangle-148x205.excludeAnnotations = var Calories
Can anyone save me again?