Skip to content Skip to sidebar Skip to footer

Progressbar Visibility Issue

I have an issue with progressbar's visibility. Basically,I am passing a intent from activity to another activity after startActivity(intent) line I am setting the visibility of pro

Solution 1:

Set progress bar invisible in onStop() of Activity:

progressBar.setVisibility(View.INVISIBLE)

If needed in a particular case put a flag while starting new Activity and check that flag in onStop().

Solution 2:

one way is that using post delay

newHandler().postDelayed(newRunnable() {
            @Overridepublicvoidrun() {
                progressBar.setVisibility(View.INVISIBLE);
            }
        }, TIMEINMILISECONDS);

Post a Comment for "Progressbar Visibility Issue"