Text after "div class =" itemprop = "text">
I want to show an alert box before my activity. After clicking the "OK" button should work only with intent but my case alertsbox If you want to show in the show then intend to work immediately My intention is to stop automatically before the intent. This is my activity code
alert.showAlertDialogpostive (ChangePass.this, "successfully copied", "password successfully changed", correct); UserFunctions userFunction = New UserFunctions (); UserFunction.logoutUser (getApplicationContext ()); Intent dashboard = new intent (getApplicationContext (), login variability. Class); // Close all the scenes before starting the dashboard dashboard.Edflag (Intent.FLAG_ACTIVITY_CLEAR_TOP); StartActivity (dashboard); // Close the registration screen (finish); and this is my warning builder class
@SuppressWarnings ("protest") public zero showAlertDialogpostive (reference reference, string title, string message, boolean status ) {Ultimate Alert Demo Alert Dialogue = New AlertDialog. Builder (reference) .create (); // Set Dialog Header Alert Dialog.setTitle (title); AlertDialog.setCancelable (wrong); // Set Dialog Message Alert Dialog.setMessage (Message); If (position! = Null) // Set alert alert icon warning Dialog.setIcon ((position)? R.drawable.success: R.drawable.success); // Installation OK button alertDialog.setButton ("OK", New DialogInterface.OnClickListener () {Public Zero onClick (Final DialogInterface dialogue, final integer) {alertDialog.dismiss ();}}); // warning message warning is showing dialog.show (); } The intent should work only after clicking on the OK button in the alert box.
No comments:
Post a Comment