I've searched everywhere and I can't find a solution to this problem.
Basically I have a login screen and I'm trying to get a progress spinner to show up while it's logging in to the server (via a thread), and then dismiss it after the login is successful. It has to work while changing orientations.
I am using DialogFragment
with the Android compatibility package to make a progress bar (can't find any documentation on it, only for basic\alert dialog) because showDialog()
is deprecated now. Right now I just show a custom message box as a login spinner.
In Summary:
- How can I set up a Progress spinner with
DialogFragment
. - How can I dismiss it in another thread after orientation changes.