How can I save a current snapshot of my app before I rotate?
Is there a way I can save the current snapshot of my app before it gets 开发者_StackOverflowdestroyed (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.
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.
精彩评论