try{
new AccumulateTask().execute(firstItemCount, firstItemCount,print_YN);
mTweetList.add(new RoomListItem(Address, RoomType, price, Content, ArticlePhoto1, Article_PK_ID));
mAdapter.notifyDataSetChanged();
}catch(Exception e){
}
class AccumulateTask extends AsyncTask<Integer, Integer, Integer> {
protected void onPreExecute() {
}
protected Integer doInBackground(Integer... params) {
int id = params[0];
int listPos = params[1];
int pSw = params[2];
try{
String fileName = temp_imgpath[id];
String imagePath = fileName;
BitmapFactory.Options resizeOpts = new Options();
resizeOpts.inSampleSize = 5;
resizeOpts.inJustDecodeBounds = false;
resizeOpts.inPurgeable = true;
InputStream is = new URL(imagePath).openStream();
Bitmap bit = BitmapFactory.decodeStream(is,null, resizeOpts);
// PensionListItem Item = (PensionListItem)pensionItem.get(id);
RoomListItem Item = (RoomListItem)mTweetList.get(listPos);
Item.setImageBitmap(bit);
bit = null;
is.close();
bit.recycle();
resizeOpts = null;
Item = null;
}catch(Exception e){
Log.i(null, "imageErr = "+listPos);
}catch(OutOfMemoryError e){
}
return 0;
}
protected void onProgressUpdate(Integer... progress) {
//dialog.progressDialogClose();
}
protected void onPostExecute(Integer result) {
}
protected void onCancelled() {
//dialog.progressDialogClose();
}
}\
위와 같이 하면 10개중에서 1~2개는 불러오지를 못합니다
미치겟습니다
어떻게 해야하나요?