I am new the Android. In my application development, I want to handle the display (screen) rotation. Is there any listener is available to handle this event? Or is there any alternate way to handle this situation?
Thanks & Regards,
Bala
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.
Let’s say you want to handle the orientation change yourself, use
configChanges="orientation"in your activity in the manifest.xmlNow when one of these configurations change, MyActivity is not restarted. Instead, the Activity receives a call to
onConfigurationChanged().More details here: Handling runtime changes