Include this Function in your class and call this function by
providing the parameters for tittle and message you want to display.
private void sayMessage(String title, String msg) {
Dialog d = new Dialog(this);
d.setTitle(title);
TextView tv = new TextView(this);
tv.setText(msg);
d.setContentView(tv);
d.show();
}
call your function like this
sayMessage("Great","Wow I Made It Happen, Am Marvelous");
* You Will Have To Import Some Classes When You Put This Code.
* Press ctrl+shift+o then it will automatically fix your imports
Subscribe to:
Post Comments (Atom)
JWT Token Decode Using Jquery
When it come to authentication we use many mechanism. Ones the user authenticated we must keep these details somewhere safe. So we can share...
-
In this blog post Ill explain you the logic behind the Sri Lankan National Identity Card (NIC). Sri Lanka now has Old NIC No Format as well ...
-
In This Article I Will Demonstrate You To Create A Simple Chat Program Using Java Remote Method Invocation(RMI). Following Program Supports ...
-
In a windows form application sometimes you may want to import a excel file to a data grid view. In this blog post Ill demonstrate to you gu...
No comments:
Post a Comment