Example usage for android.app ProgressDialog ProgressDialog

List of usage examples for android.app ProgressDialog ProgressDialog

Introduction

In this page you can find the example usage for android.app ProgressDialog ProgressDialog.

Prototype

public ProgressDialog(Context context) 

Source Link

Document

Creates a Progress dialog.

Usage

From source file:weavebytes.com.futureerp.activities.DashBoardActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    progress = new ProgressDialog(DashBoardActivity.this);
    arrayList.clear();/*from   ww  w.ja va 2s.com*/
    JsonParsing();
}

From source file:com.nextgis.maplibui.util.NGWTrackLayerCreateTask.java

@Override
protected void onPreExecute() {
    super.onPreExecute();
    mProgress = new ProgressDialog(mActivity);
    mProgress.setProgressStyle(ProgressDialog.STYLE_SPINNER);
    mProgress.setCanceledOnTouchOutside(false);
    mProgress.setOnCancelListener(new DialogInterface.OnCancelListener() {
        @Override/*from   w w w.j a v a2s  .c o  m*/
        public void onCancel(DialogInterface dialogInterface) {
            mIsCancelled = true;
        }
    });
    mProgress.setMessage(mActivity.getString(R.string.message_loading));
    ControlHelper.lockScreenOrientation(mActivity);
    mProgress.show();
}

From source file:asynctasks.AddTicketDataAsync.java

@Override
protected void onPreExecute() {
    pDialog = new ProgressDialog(context);
    pDialog.setMessage("Adding Ticket...");
    pDialog.setIndeterminate(false);/*  ww  w.  ja  v  a2  s  .co  m*/
    pDialog.setCancelable(true);
    pDialog.show();
}

From source file:com.securekey.sdk.sample.SetQuickCodeActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    SDKSampleApp.getInstance().setCurrentActivity(this);
    me = this;// www  . j  a  v a 2s.c  o m
    setContentView(R.layout.activity_setquickcode);

    mProgressDialog = new ProgressDialog(this);

    userId = SDKSampleApp.getInstance().retrieveUserId();

    EditText userIdField = ((EditText) findViewById(R.id.editTextUsername));
    userIdField.setText(userId);

    findViewById(R.id.buttonSetQuickCode).setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {

            quickCode = ((TextView) findViewById(R.id.editTextQuickCode)).getText().toString();
            if (quickCode.length() == 0) {
                showDialog("QuickCode has to be at least 4 digits long!");
                return;
            }
            final String pwd2 = ((TextView) findViewById(R.id.editTextQuickCodeConfirm)).getText().toString();
            if (pwd2.length() == 0) {
                showDialog("QuickCode has to be at least 4 digits long!");
                return;
            }
            if (!(quickCode.equalsIgnoreCase(pwd2))) {
                showDialog("QuickCode entries not matching!");
                return;
            }

            authenticateDevice();
        }
    });

}

From source file:edu.usf.cutr.opentripplanner.android.tasks.ServerChecker.java

/**
  * Constructs a new ServerChecker/*  w  w w  .  ja  v  a 2 s. c  om*/
  * @param 
  */
public ServerChecker(WeakReference<Activity> activity, Context context, boolean showMessage) {
    this.activity = activity;
    this.context = context;
    this.showMessage = showMessage;
    if (activity.get() != null) {
        progressDialog = new ProgressDialog(activity.get());
    }
}

From source file:asynctasks.UpdateTicketDataAsync.java

@Override
protected void onPreExecute() {
    pDialog = new ProgressDialog(context);
    pDialog.setMessage("Updating Ticket...");
    pDialog.setIndeterminate(false);/*from   w  w w  .j  a  v a  2  s .c o  m*/
    pDialog.setCancelable(false);
    pDialog.show();
}

From source file:in.codehex.facilis.ForgotPasswordActivity.java

/**
 * Initialize the objects.//from  ww  w  .j ava 2 s  .c  o m
 */
private void initObjects() {
    editEmail = (EditText) findViewById(R.id.edit_email);
    btnResetPass = (Button) findViewById(R.id.btn_reset_pass);
    textBackLogin = (TextView) findViewById(R.id.text_back_login);

    mProgressDialog = new ProgressDialog(this);
}

From source file:com.wikonos.network.HttpLogSender.java

/**
 * Shows progress bar/* ww  w .ja  v a 2 s.  c  om*/
 */
@Override
protected void onPreExecute() {
    super.onPreExecute();

    mLoaderDialog = new ProgressDialog(mContext);
    mLoaderDialog.setMessage(mContext.getString(R.string.msg_dialog_loading));
    mLoaderDialog.setCancelable(false);
    mLoaderDialog.setOnCancelListener(new OnCancelListener() {
        @Override
        public void onCancel(DialogInterface dialog) {
            cancel(true);
        }
    });
    mLoaderDialog.show();
}

From source file:br.ufg.inf.es.fs.contpatri.mobile.webservice.EnviarColeta.java

public EnviarColeta(final Activity actv) {
    dialog = new ProgressDialog(actv);
    tmbDAO = new TombamentoDAO(actv);
    activity = actv;
}

From source file:com.example.android.popularmovies.app.FetchMoviesTask.java

public FetchMoviesTask(Context context, MoviesAdapter mMoviesAdapter) {
    mContext = context;
    moviesAdapter = mMoviesAdapter;
    dialog = new ProgressDialog(context);
}