Try to dynamically create the ImaveView. The snippet code is listed
below. It's not the solution just a hint. For testing you can call
also System.gc() after setContentView(new View(this)); But using it in
your code is not a good way. Read this
http://blog.javia.org/android-allocation-free-code-avo
In onStop method I am trying to remove all references to my view hierarchy
so garbage collector to reclaim the memory of layout. Setting content view
to null throws Exception so I set contentView to something that doesn't use
much memory, while the activity is not visible.
--
You received this
@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 wrote:
> Hello,
> I am trying to optimize the memory usage of my application on Xoom. I
> h
3 matches
Mail list logo