Running multiple copies of the same data field

Former Member
Former Member

anyone have insight into how connect iq handles the same data field running on multiple screens / field positions within the same profile?  it's not something i do on my own garmin, but a few of my users seem to do it with my wind field datafield.  in my limited testing doing it, it looks like the multiple copies is really just one instance of the code running, but displaying on multiple positions, which i would think is calling onlayout multiple times.

  • If you run the same data field multiple times in the same activity, here's how it works:

    compute is called one time every second if you have the same data field more than once.

    onLayout/onUpdate is called one time every second for each copy that it currently visible.  So if you have it on the same screen twice, onLayout/onUpdate is called twice every second.

    So, you really want all your "smarts" in compute() where onUpdate() is just to display the info.