So, I've come to a dead end regarding devices with just 32 KB of Glance (and app) code. When dealing with background code that keep adding until the background data is read, that 32 KB becomes really problematic, especially when just trying to store an array of three element where each element is an array of three numbers with still 10KB of free space up until that setValue call ends up with a Out of Memory error! What?!? I know that arrays of arrays have a small overhead and so does serialization, but common! 10 KB isn't enough?!?
So I tried to not let those devices with just 32KB of Glance have a glance (ie, exclude getGlanceVIew using excludeAnnotations but that ended up with a "A critical error has occurred" (man I hate those, they are often hard to pin point), so that's also a no go.
Is there a way for the Glance code to NOT see the background data altogether? That would solve my problem but I haven't figured out a way to do it. My only other solution is to drop them altogether, which would suck.
Thanks.