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?