views:

52

answers:

2

Is there a way I can save the current snapshot of my app before it gets destroyed (when it gets rotated):

I know I can save all my data in

public Object onRetainNonConfigurationInstance() {}

But is there something simpler because I have a lot of data that would need to get saved.

+1  A: 

There is a good article about this on the Android site

Jay Askren
A: 

Why not use buildDrawingCache(); Bitma b=getDrawingCache();

Then you can use Canvas to draw the Bitmap and rotate it.

At last, destroyDrawingCache().

that's it.

He doesn't mean a literal snapshot. (I don't think). He means a snapshot of the data.
I82Much
correct snapshot of the data
Sheehan Alam