What’s the best way to create reusable dialog boxes in Android?
Reading through the Dialog dev guide, I know I can use AlertDialog.Builder(this); in one of my Activitys, but what if I want to use this in multiple Activities? If this was some other class I would extend it, so MyDialog extends AlertDialog, but then I cannot use the Builder.
Any suggestions?
Crate one class file like as
AllMethod.javaand add this code in that class file.and you can use from any class like below code.