@Override
protected void onStop() {
super.onStop();
setContentView(new View(this));
}
What exactly are you trying to do here?
On Jun 21, 1:37 pm, mladen <[email protected]> wrote:
> Hello,
> I am trying to optimize the memory usage of my application on Xoom. I
> have an activity, which contains large images, so I decided to remove the
> whole layout in onStop method and restore it in onStart. But the memory is
> not released. I used MAT tool to detect the memory leak. It seems like a
> reference to EditText is hold by Android system. How can I clear this
> reference? I attached a simple example. I am curios how the problem can be
> solved, I know that I can use different images for specific screen sizes. I
> also tested with Nexus S, but the problem doesn't exists on it.
>
> example.zip
> 2954KViewDownload
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en