[android-developers] Re: OutOfMemoryError
Hi DanH, yes I have read and review or check my source, but I gave was
calling correctly. So I moved recycle in onStop.
my source is following:
@Override
protected void onPause() {
// TODO Auto-generated method stub
// Store values between instances here
super.onPause();
}
Now I do not use the onPause.
@Override
protected void onStop() {
// TODO Auto-generated method stub
super.onStop();
Log.v("episode", "stop");
if (imageBG != null) {
if (!imageBG.isRecycled())
imageBG.recycle();
imageBG = null;
}
}
long free = Runtime.getRuntime().freeMemory();
Log.v("episode", "stop free memory="+free);
}
I'm doing something wrong?
thank you very much indeed.
Thanks a lot for all your replies.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home