… | |
… | |
129 | {
|
129 | {
|
130 | Bitmap temp = null;
|
130 | Bitmap temp = null;
|
131 | try
|
131 | try
|
132 | {
|
132 | {
|
133 | temp = BitmapFactory.decodeFile(full_local_filename);
|
133 | temp = BitmapFactory.decodeFile(full_local_filename);
|
|
|
134 | // DPI
|
|
|
135 | temp.setDensity(aagtl.Global_want_dpi);
|
134 | }
|
136 | }
|
135 | catch (OutOfMemoryError e)
|
137 | catch (OutOfMemoryError e)
|
136 | {
|
138 | {
|
137 | e.printStackTrace();
|
139 | e.printStackTrace();
|
138 | System.gc();
|
140 | System.gc();
|
139 | try
|
141 | try
|
140 | {
|
142 | {
|
141 | temp = BitmapFactory.decodeFile(full_local_filename);
|
143 | temp = BitmapFactory.decodeFile(full_local_filename);
|
|
|
144 | // DPI
|
|
|
145 | temp.setDensity(aagtl.Global_want_dpi);
|
142 | }
|
146 | }
|
143 | catch (OutOfMemoryError e2)
|
147 | catch (OutOfMemoryError e2)
|
144 | {
|
148 | {
|
145 | e2.printStackTrace();
|
149 | e2.printStackTrace();
|
146 | }
|
150 | }
|
… | |
… | |
263 | // 1));
|
267 | // 1));
|
264 | download_list.remove(this_tile);
|
268 | download_list.remove(this_tile);
|
265 | main_object.append_status_text(" dl:" + download_list.size());
|
269 | main_object.append_status_text(" dl:" + download_list.size());
|
266 | }
|
270 | }
|
267 | // System.out.println("removed:" + String.valueOf(this_tile));
|
271 | // System.out.println("removed:" + String.valueOf(this_tile));
|
|
|
272 | //try
|
|
|
273 | //{
|
|
|
274 | // Thread.sleep(2);
|
|
|
275 | //}
|
|
|
276 | //catch (InterruptedException e)
|
|
|
277 | //{
|
|
|
278 | // break;
|
|
|
279 | //}
|
|
|
280 | }
|
|
|
281 | else
|
|
|
282 | {
|
268 | try
|
283 | try
|
269 | {
|
284 | {
|
270 | Thread.sleep(2);
|
285 | Thread.sleep(50);
|
271 | }
|
286 | }
|
272 | catch (InterruptedException e)
|
287 | catch (InterruptedException e)
|
273 | {
|
288 | {
|
274 | break;
|
289 | break;
|
275 | }
|
290 | }
|
276 | }
|
291 | }
|
277 | else
|
|
|
278 | {
|
|
|
279 | try
|
|
|
280 | {
|
|
|
281 | Thread.sleep(100);
|
|
|
282 | }
|
|
|
283 | catch (InterruptedException e)
|
|
|
284 | {
|
|
|
285 | break;
|
|
|
286 | }
|
|
|
287 | }
|
|
|
288 | }
|
292 | }
|
289 |
|
293 |
|
290 | }
|
294 | }
|
291 |
|
295 |
|
292 | }
|
296 | }
|