I have a large bitmap that i would like to keep in memory when the qwerty keyboard is visible. My app is always in landscape, so this is the only configuration change that will cause a reDraw. I heard this is what onRetainNonConfigurationinstance() is for...but cant figure it out. Can someone point me in the right direction? Thanks.
views:
65answers:
1
A:
try
@Override
public Object onRetainNonConfigurationInstance() {
return bitMap;
}
in onCreate call getLastNonConfigurationInstance(); to recive the bitmap
I hade a smilare read about it http://stackoverflow.com/questions/3250987/save-cache-when-rotate-device/3252547#3252547
FoJjen
2010-07-24 10:30:33