According this answer , I wanna to show dilaog until the next 10 posts is loaded so I created the static alertDialog method to use it in different places in my app, but the problem is the dialog doesn’t cancel or dismiss setProgressDialog in Utils class then I used it in HomeFragment on click load more button PS: I tried
Tag: android-progressbar
showing refresh page button when there is no internet connection
I have an activity that requires an internet connection, and I put a progress bar for loading pages, but when there is no internet connection from the user the progress bar is always VISIBLE, like the code below and what I want is, when there is no internet connection, the progress bar has the status of GONE and immediately showing