Android Open Source - wizapp Base Activity






From Project

Back to project page wizapp.

License

The source code is released under:

MIT License

If you think the Android project wizapp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.wb.wizapp.ui;
//w ww .  j a  va  2s.co m
import android.app.Activity;
import android.app.DialogFragment;
import android.os.Handler;
import android.util.Log;

import com.wb.wizapp.IConstants;

public class BaseActivity extends Activity {

  private DialogFragment frg;
  private final int PROGRESS_TIMEOUT = 2 * 1000;

  public void ShowProgress() {
    Log.d(IConstants.LOG_TAG, "ShowProgress");

    if (frg == null) {
      frg = new BaseProgressFragment();
    }

    if (!frg.isVisible()) {
      frg.show(getFragmentManager(), "progress");
      new Handler().postDelayed(new Runnable() {
        @Override
        public void run() {
          HideProgress();
        }
      }, PROGRESS_TIMEOUT);
    }

  }

  public void HideProgress() {
    if (frg != null && frg.isVisible()) {
      Log.d(IConstants.LOG_TAG, "HideProgress");
      frg.dismiss();
    }
  }
}




Java Source Code List

com.wb.wizapp.IConstants.java
com.wb.wizapp.concurret.UIAsyncTask.java
com.wb.wizapp.concurret.UISyncTask.java
com.wb.wizapp.ex.WizError.java
com.wb.wizapp.rest.IJsonParsable.java
com.wb.wizapp.rest.IRestAPIServiceBuilder.java
com.wb.wizapp.rest.JsonBean.java
com.wb.wizapp.rest.JsonObject.java
com.wb.wizapp.rest.RestAPIHostFactory.java
com.wb.wizapp.rest.RestAPIHost.java
com.wb.wizapp.rest.RestAPISercieBuilderAdapter.java
com.wb.wizapp.rest.RestAPIService.java
com.wb.wizapp.router.RouteeCallback.java
com.wb.wizapp.router.Routee.java
com.wb.wizapp.router.Router.java
com.wb.wizapp.ui.BaseActivity.java
com.wb.wizapp.ui.BaseProgressFragment.java
com.wb.wizapp.ui.DetailActivity.java
com.wb.wizapp.ui.MainActivity.java
com.wb.wizapp.ui.MainDrawerFragment.java
com.wb.wizapp.ui.RouterWebViewActivity.java
com.wb.wizapp.ui.RouterWebView.java
com.wb.wizapp.ui.zxing.ScanActivity.java