Answers for "onbackpressed android"

0

onbackpressed

@Override
    public void onBackPressed() {
        super.onBackPressed();
    }
Posted by: Guest on October-14-2020
-2

onbackpressed android

@Override
public void onBackPressed() {
    new AlertDialog.Builder(this)
        .setTitle("Really Exit?")
        .setMessage("Are you sure you want to exit?")
        .setNegativeButton(android.R.string.no, null)
        .setPositiveButton(android.R.string.yes, new OnClickListener() {

            public void onClick(DialogInterface arg0, int arg1) {
                WelcomeActivity.super.onBackPressed();
            }
        }).create().show();
}
Posted by: Guest on March-20-2020

Code answers related to "onbackpressed android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language