For example, I have write GUI. I have a SeekBar, I change the progress but if I rotate android phone the progress is dropped as default. Why it’s happend and how could I fix it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is because androids reloads the activity when the screen is rotated. You can disable the rotaion by adding android:screenOrientation=”portrait” to the element in the manifest or landscape.
Or you will need to store the activity’s state elsewhere and onload of the activity, set the values from your store.