In my android app, I want to show a spinner in my activity when a user clicks login button after entering the details.The spinner should appear only till the login process is validated in the background. After it is done, then the spinner should disappear and the user should be taken to the desired activity.
Asked
Active
Viewed 49 times
-1
-
What you have tried ? – Don Chakkappan Feb 05 '15 at 07:09
-
Show related code, and mention where are you stuck? – MysticMagicϡ Feb 05 '15 at 07:10
-
use background AsyncTask and implement progress Dialog on its preExecute method and dismiss it in postExecute method, when background task is completed. – Karan Maru Feb 05 '15 at 07:11
-
please refer this link : http://nads-rosun.blogspot.in/2014/01/android-login-application-using.html – Karan Maru Feb 05 '15 at 07:16
1 Answers
0
I think you might have trouble finding this because in Android the 'Spinner' name is already taken for another control. What you are looking for is an Activity Circle in the form of a ProgressBar
. Maybe these SO questions will be of help to you: