In my program I want this alert dialog to show after 3000ms. how can I do this? I tried a lot but I couldnt. any Idea?
Help is always appreciated…!
AlertDialog.Builder successfullyLogin = new Builder(Register.this);
successfullyLogin.setCancelable(false);
successfullyLogin.setMessage("Successfully Login !");
// successfullyLogin.wait(3000);// this line is nt working
successfullyLogin.setPositiveButton("Ok",new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog,int which)
{
}
});
I think the wait function you are calling should be specifically used for multithreading…
try this…