进度对话框中的Andr​​oid进度、对话框中、oid、Andr

2023-09-08 09:08:25 作者:千万别在最好的年龄里

我深知如何在我的应用程序显示进度的对话上。我只是想知道是否有无论如何,我们可以设置一个超时的时间间隔为这个进度对话框。 [我的意思是对此有任何API]

I am fully aware on how to display progress dialogues in my application. I just want to know if there is anyway that we can set a "timeout" interval for this progress dialog. [I mean is there any API for this]

我可以随时运行这个线程,但认为这将是更好,如果有一个内置的API已经..

I can always run a thread for this, but thought it would be better if there was an inbuilt API already..

推荐答案

有没有内置的API。只需使用AsyncTask的或线程,你是如何已经提到。

There is no built-in api. Just use AsyncTask or thread, how you have already mentioned.