Its very important to show a loading dialog to user when some process is going in background.
So, lets implement such loading dialog using a util file which can be used in any of your project you do.
Download LoadingSpinner.java
How to use LoadingSpinner.java ?
Note: First Copy paste LoadingSpinner.java file into your project and then follow these steps.
Step 1 : Declare it in your Activity file
LoadingSpinner loadingSpinner;
Step 2 : Initialize loadingSpinner as follows in onCreate() method
loadingSpinner=new LoadingSpinner(this,"Call will be created soon...");
Step 3 : To open or close dialog use following code
loadingSpinner.startSpinner();
loadingSpinner.stopSpinner();
Thank you
Please like and subscribe
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging
ReplyDeletesoftware testing course in chennai
android app marketing This is one awesome blog.Really thank you!
ReplyDelete