官方文档: AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers. AsyncTask能够更恰当和更简单的去使用UI线程.这个类允许执行后台操作
上面一篇文章说了Launcher是如何被启动的,Launcher启动的过程主要是加载界面数据然后显示出来, 界面数据都是系统APP有关的数据,都是从Launcher的数据库读取,下面我们详细分析Launcher如何加载数据. 在Launcher.java的onCreate()方法里面,调用了开始加载数据接口: //Edited by mythou//http://www.cnblogs.com/mythou///加载启动数据 if (!mRestoring) { mModel.startLoad
ProgressDialog progressDialog = null; public static final int MESSAGETYPE = 0; private void execute() { try { progressDialog = ProgressDialog.show(context "请稍等...", "数据正在加载中......", true); new Thread(new Runnable() { @Override public v