I am developing a sample app.I am able to show alert on button click having some tittle and button .But now I want to show a pop up window having username (Label)
Use the below coding to display a Pop up in android.
AlertDialog.builder builder=new AlertDilaog.Builder(this);
builder.setMessage("PopUP Example");
AlertDialog alert=builder.create();
alert.setTitle("");
alert.show();
new Handler.postDelayed(new Runnable()
{
@override
public void run()
{
//TODO
alert.dismiss();
}
},1*1000);
}
Youtube link: https://www.youtube.com/watch?v=SEsVTTl6exg