I have a “Back” button that I created.
Action for it is —– UIAplication.getUIApllication.pushScreen(screen1)
I did so because I want to refresh screen 1 when I cick “Back “.
But there have an error that ” OutOfMemoryError” when I click “Back” few times.
If I replace with – UIAplication.getUIApllication.popScreen(this) , there have no error .
But I really want to refresh screen1.
Why I gotthis error ? How to solve it ? ( I use Persistenobject to save data for my app ).
Please help me . Thanks a lot.
Pushing the same screen again adds additional screen to stack and takes additional memory.
And it is logical that you get outofmemory error.
If you want to refresh field’s/manager’s contents use invalidate() method of a particular field or manager.