i working on NOKIA 6800 handphone and having a problem of handphone "restart" when memory overload.
i found that the line "drawString("Score : " + s)" make the memory overload.
"s" is an "Integer", everytime i run this line, it create a "String object", String Buffer object" and "char[]".
the "s" is "Score", which need to run "s++" to add the score, so it must be a "Integer", is there any other way to code this line to avoid memory overload???
Thank u for reply me !

Reply With Quote

