目前我有工作原理是这样的的AsyncTask:
String doInBackground(Void... params)
//Downloads a JSON and returns it to the onPostExecute().
void onPostExecute(String response)
//Parses the JSON which has an array of stuff and insert into sqlite.
Call changeCursosr and notifyDataSetChanged.
这是处理插入和清爽的列表视图的正确方法吗?目前,我在遇到执行后遇到轻微的挂起。我应该解析&在doInBackground中插入数据吗?
应该在onPostExecute中获取数据和更改光标吗? – Maurice 2011-12-21 03:02:54
不,取数据应该在'doInBackground'中出现。 – 2011-12-21 20:42:23