请在android中等待 [英] Please wait in android

查看:75
本文介绍了请在android中等待的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我想在我的应用程序之间显示我的活动之间的请稍候菜单.正在从Web服务下载一些数据,有人可以告诉我该怎么做吗?

Hi Guys
i want to show a please wait menu between my activities while my app. is downloading some data from web service,can any one tell me how can i do this?

推荐答案

您可以简单地使用Toast通知.
http://developer.android.com/guide/topics/ui/notifiers/toasts.html [^ ]

祝你好运!
You can simply use a Toast Notification.
http://developer.android.com/guide/topics/ui/notifiers/toasts.html[^]

Good luck!


您可以调用过程对话框

You can call the process dialog

ProgressDialog dialog = ProgressDialog.show(this, "Down Loading", "Please wait ...", true);



然后执行您的任务,并在完成后调用



then perform your task and when done call

dialog.dismiss();



/Darren



/Darren


这篇关于请在android中等待的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆