Mobile Technologies Mobile Computing . 1 year ago

Activity restart on rotation Android

Activity restart on rotation Android

2 views   0   0 likes   0 shares Tuteehub forum manpreet 0 answers
_x000D_ _x000D_ In my Android application, when I rotate the device (slide out the keyboard) then my Activity is restarted (onCreate is called). Now, this is probably how it's supposed to be, but I do a lot of initial setting up in the onCreate method, so I need either: Put all the initial setting up in another function so it's not all lost on device rotation or Make it so onCreate is not called again and the layout just adjusts or Limit the app to just portrait so that onCreate is not called.
Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.


Tuteehub forum answer Answers (0)

Related Tags

AskAnything Ask Anything

Ask Me Anything

ask me anything tuteehub

Hello! How can I assist you today?
Whether you have questions, need information, or just want to chat, feel free to let me know