开发者

How to set a time for progressive dialog?

开发者 https://www.devze.com 2023-03-21 09:15 出处:网络
I want to set a time (for example 5 seconds) for ProgressDialog in my android 开发者_如何学Capp. How can I do this? I think you can use handler for this.Firstly start show dialog and at this time send

I want to set a time (for example 5 seconds) for ProgressDialog in my android 开发者_如何学Capp. How can I do this?


I think you can use handler for this.Firstly start show dialog and at this time sendMessageForDelay(event_id,5*1000) and at handleMessage you check dialog is showing or not.If showing you dismiss it.Goodluck :)

0

精彩评论

暂无评论...
验证码 换一张
取 消