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 ImageCursor extends Activity { /** Called when the activity is first created. */ public void onCreate(Bundle icicle) { final String TAG2 = "TAG2"; Log.v(TAG2, "Start" ); getDataImage(); super.onCreate(icicle); } public void addImageB(){ final String tag="aaaa"; Log.i(tag,"TO ADD"); ContentValues values = new ContentValues(); values.put(android.provider.MediaStore.Images.ImageColumns.BUCKET_DISPLAY_NAME, "road_trip_1"); values.put(android.provider.MediaStore.Images.ImageColumns.DESCRIPTION, "Day 1 trip to Los Angeles"); Uri uri = getContentResolver().insert(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); OutputStream outStream; try { outStream = getContentResolver().openOutputStream(uri); Bitmap sourceBitmap = BitmapFactory.decodeResource(this.getResources(), R.drawable.icon); sourceBitmap.compress(Bitmap.CompressFormat.PNG, 50, outStream); outStream.close(); } catch (FileNotFoundException e) { e.printStackTrace(); Log.i(tag, e.getMessage()); } catch (IOException e) { e.printStackTrace(); Log.i(tag, e.getMessage()); } } public void getDataImage(){ // ############# PROBLEM HERE ############# ContentURI uri1 = new ContentURI(android.provider.MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI.toURI()); // ############# END PROBLEM ############# Cursor cur = this.managedQuery(uri1, projection, null, null); final String tag2="aaaa"; Log.i(tag2,"NUM"); if(cur != null) getColumnDataImage(cur); } private void getColumnDataImage(Cursor cur){ // if(!cur.first()) // return; cur.moveToFirst(); int imageIndex = cur.getColumnIndex(android.provider.MediaStore.Images.Media.DATA); if(imageIndex==0) { final String tag2="aaa"; Log.i(tag2,"No files are there"); } else { final String tag2="aaaa"; Log.i(tag2,"files "); } /* do { ContentURI imagePath = null; String u = cur.getString(imageIndex); Log.i("MYAPP>>>>", ""+u); if(u!=null){ try { imagePath = new ContentURI(u); } catch (URISyntaxException e) { e.printStackTrace(); Log.e("MYAPP>>>>", e.getMessage()); } Log.i("MYAPP>>>>", ""+imagePath.toString()); if(imagePath != null){ InputStream is = null; ContentResolver cr = this.getContentResolver(); if(cr != null){ try{ is = cr.openInputStream(imagePath); } catch (FileNotFoundException e) { e.printStackTrace(); Log.e("MYAPP>>>>", e.getMessage()); } } if(is != null){ b = BitmapFactory.decodeStream(is); } } } }while (cur.next());*/ } }