Android Developer Question: Download Questions PDF
Explain me how does the activity respond when the user rotates the screen?
![Android Developer Interview Answer Android Developer Interview Question](https://globalguideline.com/public/images/interview/19.png)
Answer:
When the screen is rotated, the current instance of activity is destroyed a new instance of the Activity is created in the new orientation. The onRestart() method is invoked first when a screen is rotated. The other lifecycle methods get invoked in the similar flow as they were when the activity was first created.
Download Android Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain me scenario in which only onDestroy is called for an activity without onPause() and onStop()? | What are content providers? |