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);
}
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;
}
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;
}
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;
}
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;
}
Aggregations