set timeout Dialog in android? -


i want set timeout dialog (progress dialog) in android , make dialog disappears after period of time (if there no response action !)

the same approach in this post verified work (with long instead of float):

public void timerdelayremovedialog(long time, final dialog d){     new handler().postdelayed(new runnable() {         public void run() {                             d.dismiss();                  }     }, time);  } 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -