I want to show a dialog for a while (for instance 2 seconds) when some event happened like when SMS received and after 2 seconds it hide automatically.
How can I do it in codenameone?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
Dialogclass has ashow()method that accepts a timeout as one of its arguments. If I remember correctly there is also a way tosetTimeouton the dialog instance.