Application Restarted on Orientation change,How To save State?

You can subscribe the Sensor Events that will let you know when the orientation has been changed. When this event is fired fire all your data into a DataState object and send back to the Activity. When the activity is started up again it will check to see if the DataState object is not null and you can restore the state from that!

You can subscribe the Sensor Events that will let you know when the orientation has been changed. When this event is fired fire all your data into a DataState object and send back to the Activity. When the activity is started up again it will check to see if the DataState object is not null and you can restore the state from that!

I am aware this answer is a bit jumbled but it is possible to do this. I'm just not sure on the specifics. developer.android.com/reference/android/....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions