I have a program containing a drawable canvas
I want my program to support both orientations, vertical and horizontal..
Everything seems Ok but when i rotate my device everything on my canvas becomes erased.
I tried saving canvas data on a file before rotation(Activity_Pause) , to read it again on canvas after rotation(Activity_Resume). But this method did't worked. It saved but only a blank file.
Maybe smth with Process_Globals or...
Where and how should I initialize canvas to protect its content even after rotation change?
Thank you for your help...
I want my program to support both orientations, vertical and horizontal..
Everything seems Ok but when i rotate my device everything on my canvas becomes erased.
I tried saving canvas data on a file before rotation(Activity_Pause) , to read it again on canvas after rotation(Activity_Resume). But this method did't worked. It saved but only a blank file.
Maybe smth with Process_Globals or...
Where and how should I initialize canvas to protect its content even after rotation change?
Thank you for your help...
Last edited: