Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class MySimpleCursorAdapter extends SimpleCursorAdapter { private Cursor _cursor; private Context _context; public MySimpleCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { super(context, layout, c, from, to); _cursor = c; _context = context; } public void bindView(View view, Context context, Cursor cursor) { ImageView imageView = (ImageView) view.findViewById(R.id.search_result_image); int id = _cursor.getColumnIndex("image"); URL url=null; try { url = new URL(_cursor.getString(id)); } catch (MalformedURLException e) { e.printStackTrace(); } try { // start task to download image new ImageDownloadTask().execute(new Object[] {imageView, url}); } catch(RejectedExecutionException ignored) {} super.bindView(view, context, cursor); } private class ImageDownloadTask extends AsyncTask { private ImageView iv; protected Object doInBackground(Object... params) { iv = (ImageView) params[0]; Bitmap bm = null; InputStream is=null; try { Log.d(TAG, "Downloading Image"); is = ((URL)params[1]).openConnection().getInputStream(); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } bm = BitmapFactory.decodeStream(is); return bm; } protected void onPostExecute(Object result) { // set image iv.setImageBitmap((Bitmap) result); } } }