ProgressDialog在Android的新活动 [英] ProgressDialog in Android for new Activity

查看:140
本文介绍了ProgressDialog在Android的新活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本次活动再加载大量数据的显示地图,并采取以显示几秒钟...
如何使用ProgressDialog从活动到另一个?我居然看不到它,如果我称之为

when the user taps a menu item i need to create a new Activity; this activity loads a lot of data then shows a map and takes some seconds to be shown ... How can i use ProgressDialog from an activity to another? I actually cannot see it if i call

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

在此先感谢和问候

Thanks in advance and greetings c.

推荐答案

一看便知<一个href=\"http://stackoverflow.com/questions/4077867/android-progressbar-displayed/4078156#4078156\">here

您应该使用的onCreate()活动的方法,您的AsyncTask您从菜单启动。

You should use your AsyncTask in onCreate() method of the Activity you start from menu.

这篇关于ProgressDialog在Android的新活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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