I have an Android application and almost every time I rotate the device, all my activity is restarted. I believe it's called OnCreate but I do a ton of setting up in this method. So I'm looking to do the following:
Set up everything in another function (so it doesn't happen)
Make sure OnCreate isn't called again (the layout would just adjust)
Limit the app to to just portrait (OnCreate wouldn't be called)
Has anyone tried this before? If so, what's the best option here?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!