I am developing an android application. Now i have created one function which create custom dialog box and i want this dialog box to display on every activity. So i need to call this function at every activity. But as the syntax of custom dialog (e.g. Dialog d = new Dialog(home.this)).home is the name of the activity where i have created the function so i am not ale to use this function in any other activity. And i haven’t use android that much. So give me good example to solve my problem. Here is my code
I am developing an android application. Now i have created one function which create
Share
here is sample code code of using
AlertDialogin all activity.crate one class file like as
allmethod.javaand add this code in that class
and you can use from any class like as
In your case..