I posted this in Android-Beginners, but I never really got much of a response, so I'm hoping to get some insight here.
Basically, I noticed that my application drops back to the default tab (in a four tab layout) whenever I change orientation. The data within those tabs stays the same, so that stuff is getting saved, but what I want is to catch the current tab number and revert to that whenever swapping between landscape or portrait.
My tab layout is all in onCreate. What I have been trying is something like this:
And then i'm trying to catch tabNumber with something like this:
Any thoughts on how I can do this?