Hi
I am loading some strings from strings.xml resource file.
Recently I added a interface version string and found out that this one call of loadResource used up 400 bytes.
Can somebody explain why?
I tried it on other strings and there the loadResource only needed about 20 bytes.
I have a logmessage with free memory at the end of the onUpdate function.
Before the change 1664 free
if(str == null || str.length() < 14 || !str.substring(0,1).equals("B")) { changed to <string id="IfVersion">B</string> .. if(str == null || str.length() < 14 || !str.substring(0,1).equals(WatchUi.loadResource(Rez.Strings.IfVersion))) {
after the change 1248
And this change: 1680 before
if(subtype == 3) { aTexts[i] = "2.8.7"; } changed to <string id="Version">2.8.7</string> .. if(subtype == 3) { aTexts[i] = WatchUi.loadResource(Rez.Strings.Version); }
after the change 1664.
Can anybody tell me why the first change used so much space ?
thanks
regards
Erich