Search in sources :

Example 76 with ProgressDialog

use of android.app.ProgressDialog in project priend by TakoJ.

the class LoginActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_login);
    firebaseAuth = FirebaseAuth.getInstance();
    if (firebaseAuth.getCurrentUser() != null) {
        //profile activity here
        finish();
        startActivity(new Intent(getApplicationContext(), ProfileActivity.class));
    }
    editTextEmail = (EditText) findViewById(R.id.editTextEmail);
    editTextPassword = (EditText) findViewById(R.id.editTextPassword);
    buttonSignIn = (Button) findViewById(R.id.buttonSignin);
    textViewSignup = (TextView) findViewById(R.id.textViewSignup);
    progressDialog = new ProgressDialog(this);
    buttonSignIn.setOnClickListener(this);
    textViewSignup.setOnClickListener(this);
}
Also used : Intent(android.content.Intent) ProgressDialog(android.app.ProgressDialog)

Example 77 with ProgressDialog

use of android.app.ProgressDialog in project ride-read-android by Ride-Read.

the class ProgressDialogFragment method onCreateDialog.

@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    ProgressDialog dialog = new ProgressDialog(getActivity(), getTheme());
    dialog.setMessage(getArguments().getString(KEY_TITLE));
    dialog.setIndeterminate(true);
    dialog.setCancelable(true);
    dialog.setCanceledOnTouchOutside(false);
    return dialog;
}
Also used : ProgressDialog(android.app.ProgressDialog)

Example 78 with ProgressDialog

use of android.app.ProgressDialog in project android_frameworks_base by ResurrectionRemix.

the class KeyguardSimPukView method getSimUnlockProgressDialog.

private Dialog getSimUnlockProgressDialog() {
    if (mSimUnlockProgressDialog == null) {
        mSimUnlockProgressDialog = new ProgressDialog(mContext);
        mSimUnlockProgressDialog.setMessage(mContext.getString(R.string.kg_sim_unlock_progress_dialog_message));
        mSimUnlockProgressDialog.setIndeterminate(true);
        mSimUnlockProgressDialog.setCancelable(false);
        if (!(mContext instanceof Activity)) {
            mSimUnlockProgressDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
        }
    }
    return mSimUnlockProgressDialog;
}
Also used : Activity(android.app.Activity) ProgressDialog(android.app.ProgressDialog)

Example 79 with ProgressDialog

use of android.app.ProgressDialog in project android_frameworks_base by ResurrectionRemix.

the class KeyguardSimPinView method getSimUnlockProgressDialog.

private Dialog getSimUnlockProgressDialog() {
    if (mSimUnlockProgressDialog == null) {
        mSimUnlockProgressDialog = new ProgressDialog(mContext);
        mSimUnlockProgressDialog.setMessage(mContext.getString(R.string.kg_sim_unlock_progress_dialog_message));
        mSimUnlockProgressDialog.setIndeterminate(true);
        mSimUnlockProgressDialog.setCancelable(false);
        mSimUnlockProgressDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
    }
    return mSimUnlockProgressDialog;
}
Also used : ProgressDialog(android.app.ProgressDialog)

Example 80 with ProgressDialog

use of android.app.ProgressDialog in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class ProtectedAccountView method getProgressDialog.

private Dialog getProgressDialog() {
    if (mCheckingDialog == null) {
        mCheckingDialog = new ProgressDialog(mContext);
        mCheckingDialog.setMessage(mContext.getString(R.string.pa_login_checking_password));
        mCheckingDialog.setIndeterminate(true);
        mCheckingDialog.setCancelable(false);
        mCheckingDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
    }
    return mCheckingDialog;
}
Also used : ProgressDialog(android.app.ProgressDialog)

Aggregations

ProgressDialog (android.app.ProgressDialog)266 DialogInterface (android.content.DialogInterface)47 Intent (android.content.Intent)23 View (android.view.View)21 File (java.io.File)19 TextView (android.widget.TextView)13 SuppressLint (android.annotation.SuppressLint)12 Handler (android.os.Handler)12 FrameLayout (android.widget.FrameLayout)12 ArrayList (java.util.ArrayList)12 IOException (java.io.IOException)11 JSONObject (org.json.JSONObject)10 Uri (android.net.Uri)9 LinearLayout (android.widget.LinearLayout)9 OnCancelListener (android.content.DialogInterface.OnCancelListener)8 Display (android.view.Display)8 Activity (android.app.Activity)7 Dialog (android.app.Dialog)7 ImageView (android.widget.ImageView)7 List (java.util.List)7