Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Android Bangla Tutorial 2.39 : alertdialog in android example
Play lesson

Java Beginner to Advanced Bangla Tutorials | Android | 2022-23 - Android Bangla Tutorial 2.39 : alertdialog in android example

5.0 (0)
10 learners

What you'll learn

This course includes

  • 46 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

source code for AlertDialogBuilder -------------------------------------------------------------- @Override public void onBackPressed() { alertDialogBuilder = new AlertDialog.Builder(MainActivity.this); //for setting title alertDialogBuilder.setTitle("Warning"); //for setting the message alertDialogBuilder.setMessage("Do you want to exit?"); //for setting the icon alertDialogBuilder.setIcon(R.drawable.question); alertDialogBuilder.setCancelable(false); alertDialogBuilder.setPositiveButton("Yes", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { //exit finish(); } }); alertDialogBuilder.setNegativeButton("No", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { dialog.cancel(); } }); AlertDialog alertDialog = alertDialogBuilder.create(); alertDialog.show(); } Subscribe : https://www.youtube.com/channel/UCEXwc6mNh7Lakj6lX-7a2Mg Facebook : https://www.facebook.com/anisul2010s Facebook page : https://www.facebook.com/studywithanis/ Android videos : https://www.youtube.com/playlist?list=PLgH5QX0i9K3p9xzYLFGdfYliIRBLVDRV5 Java Swing videos : https://www.youtube.com/playlist?list=PLgH5QX0i9K3rAHKr6IteF5kdgN6BorH9l HSC ICT Videos : https://www.youtube.com/playlist?list=PLgH5QX0i9K3o8Y-CKhmyodbfHAc9VSVOv C program videos : https://www.youtube.com/playlist?list=PLgH5QX0i9K3pCMBZcul1fta6UivHDbXvz Computer networking videos : https://www.youtube.com/playlist?list=PLgH5QX0i9K3p5OI88r3ob-otmKqIm_DbS Operating system videos : https://www.youtube.com/playlist?list=PLgH5QX0i9K3r_SuT0AnOEoElfQQPgkBIq

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere