Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Refresh When person rotates the handset

 
Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Suppose there is an application where a person is watching some text and images in portrait view and at the same time the application is loading at the bottom. Now if the user rotates his/her screen to landscape then how can i preserve the state as Android is saving the state and also how do i need to continue loading the app.
 
Anthony Agustin
Greenhorn
Posts: 3
Android Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try the onConfigutationChanged(Configuration) method from the Activity class?
Read more about it here.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!