你好,我目前在处理图片方面遇到了麻烦,当我从URL中异步获取数据后,不知道如何进行进一步的处理。因为异步只允许返回一个结果,所以你有什么建议吗?
/**
* After completing background task Dismiss the progress dialog
* **/
protected void onPostExecute(String json) {
// dismiss the dialog after getting song information
try {
JSONObject jsonObject = new JSONObject(json);
JSONArray jsonArray = jsonObject.getJSONArray("users");
JSONObject arrayElement_0 = jsonArray.getJSONObject(0);
uname = arrayElement_0.getString(TAG_USERNAME);
ptitle = arrayElement_0.getString(TAG_PROFILETITLE);
age = arrayElement_0.getString(TAG_AGE);
gender = arrayElement_0.getString(TAG_GENDER);
status = arrayElement_0.getString(TAG_STATUS);
small = arrayElement_0.getString(TAG_SMALL);
BitmapFactory.decodeStream((InputStream)new URL(small).getContent());