Android - Activity states newbie question -
I am trying to create a quiz app in which the questions are displayed on all the same activity. Every time the screen is rotated, the method is remembered to make the method and the quiz returns to its first question, loses all the data about other questions.
How can I stop it?
Thank you.
* ps: I do not want my application to work only on the picture or landscape mode, but on both.
In your Android manifest, add to your activity:
android : ConfigChanges = "orientation" Then something like this:
& lt; Activity Android: name = "MyActivity" Android: configChanges = "orientation" /> This app will tell you that you want to handle the changes yourself by orientation, you can not do anything with it, or hold the related method in your app.
Comments
Post a Comment