Redraw the spinner occurs during a method call onStart(). This method is caused at program start when connection with the server isn't established yet. Therefore authorization on the remote server during this stage is justified. However, we can keep in preferences SID during an exit from the program and try to use it again by a method call onStart (). In case of failure, the server will return ANS_REQAUTH, but in case of success we will save some time.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Redraw the spinner occurs during a method call onStart(). This method is caused at program start when connection with the server isn't established yet. Therefore authorization on the remote server during this stage is justified. However, we can keep in preferences SID during an exit from the program and try to use it again by a method call onStart (). In case of failure, the server will return ANS_REQAUTH, but in case of success we will save some time.