AsyncTask导致FC研究(2)
来源:未知 责任编辑:责任编辑 发表时间:2015-01-01 13:14 点击:次
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import Android.app.Activity;
import Android.app.AlertDialog;
import Android.app.Dialog;
import Android.app.ListActivity;
import Android.app.ProgressDialog;
import Android.content.Context;
import Android.content.DialogInterface;
import Android.content.Intent;
import Android.database.Cursor;
import Android.graphics.Bitmap;
import Android.os.AsyncTask;
import Android.os.Bundle;
import Android.provider.ContactsContract;
import Android.util.Log;
import Android.view.LayoutInflater;
import Android.view.View;
import Android.view.ViewGroup;
import Android.widget.AbsListView;
import Android.widget.AbsListView.OnScrollListener;
import Android.widget.Adapter;
import Android.widget.AdapterView;
import Android.widget.AdapterView.OnItemClickListener;
import Android.widget.BaseAdapter;
import Android.widget.GridView;
import Android.widget.ImageView;
import Android.widget.ListAdapter;
import Android.widget.SimpleAdapter;
import Android.widget.TextView;
import Android.widget.Toast;
public class ActivityA extends Activity {
private GridView mGridView;
private List<HashMap<String, Object>> mData;
private BaseAdapter mAdapter;
private ProgressDialog mProgressDialog;
private static final int DIALOG_PROGRESS = 0;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mGridView = (GridView) findViewById(R.id.gridview);
mData = new ArrayList<HashMap<String,Object>>();
mAdapter = new CustomAdapter();
mGridView.setAdapter(mAdapter);
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>