new AsyncTask<Void, Void, List<HashMap<String, String>>>() {
@Override
protected List<HashMap<String, String>> doInBackground(Void...
params) {
Keli keli = (Keli) getIntent().getSerializableExtra("Keli");
return
SQLiteUtils.getInstance(ActClassExs.this).getKeliTmList(keli.KeliId,
keli.SubId, ElearningApp.student.UserID, keli.ExeTp);
}
protected void onPostExecute(java.util.List<java.util.HashMap<String,
String>> result) {
String[] from = { "TmName", "Tm" };
int[] to = { R.id.pre_tm_name, R.id.pre_tm_info };
listView.setAdapter(new TmSimpleAdapter(ActClassExs.this,
result,
R.layout.item_pre_tminfo, from, to));
};
}.execute();