May 20, 2014

Create a PopUp In Android

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

No comments:

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...