AsyncTask导致FC研究(3)
来源:未知 责任编辑:责任编辑 发表时间:2015-01-01 13:14 点击:次
}
protected void onStart () {
super.onStart();
new GetGridDataTask().execute(null);//执行获取数据的任务
}
@Override
protected Dialog onCreateDialog(int id) {
switch (id) {
case DIALOG_PROGRESS:
mProgressDialog = new ProgressDialog(ActivityA.this);
mProgressDialog.setMessage("正在获取数据");
mProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
return mProgressDialog;
}
return null;
}
class CustomAdapter extends BaseAdapter {
CustomAdapter() {
}
@Override
public int getCount() {
return mData.size();
}
@Override
public Object getItem(int position) {
return mData.get(position);
}
@Override
public long getItemId(int position) {
return 0;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>