Back to project page clusterkraf.
The source code is released under:
Apache License
If you think the Android project clusterkraf listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.twotoasters.clusterkraf.sample; /*from www . ja va 2 s . co m*/ import java.lang.ref.WeakReference; import android.app.Activity; /** * */ public class DelayedIndeterminateProgressBarRunnable implements Runnable { private final WeakReference<Activity> activityRef; public DelayedIndeterminateProgressBarRunnable(Activity activity) { this.activityRef = new WeakReference<Activity>(activity); } @Override public void run() { Activity activity = activityRef.get(); if (activity != null) { activity.setProgressBarIndeterminateVisibility(true); } } }