Code is pretty simple. request the feature , toggle the Visibility.
import android.app.Activity; public class DemoActivity extends Activity { @Override @Override |
if you use a TabActivity as a parent, and your logical activity is a child of the parent. you need request the feature in the onCreate method of TabActivity.
in your logical activity, call the getparent to get the access of the parentactivity reference.
So code will be
Parent(TabActivitity) requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); your child activity ((taballActivity)this.getParent()).setProgressBarIndeterminateVisibility(true); if your logic runing in a different thread other than Main ui thread. ChildActivity.this.runOnUiThread( public void run() { } |