Thanx in Advance, Goutham
答案 0 :(得分:2)
在您的第二个活动(即登录后加载的页面)内创建
private class LoginTask extends AsyncTask<String, Void, Boolean> {
@Override
protected void onPreExecute() {
super.onPreExecute();
// show a progress dialog indicating that its loading
}
@Override
protected Boolean doInBackground(String... params) {
// give your code that has to be loaded.
}
@Override
protected void onPostExecute(Boolean success) {
super.onPostExecute(success);
//dismiss your progress dialog
}
}
在第二个活动的onCreate函数中将此LoginTask称为:
new LoginTask().execute();
希望这可以解决您的问题......
答案 1 :(得分:0)
只需显示进度对话框
看到这个。
http://developer.android.com/guide/topics/ui/dialogs.html
谢谢。