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)
/** * Creates a ringtone in the tmp directory * @param resourceId ID of the sound file you are using * @param resourceName Name of the resource, this will be used for the filename * @return A File of the mp3 file */ private File createTempRingtone(int resourceId, String resourceName) { // root of the sd card File root = Environment.getExternalStorageDirectory(); if(!root.canWrite()) { Log.e("Create Ring Tone", "Can not write in root dir "+root.getAbsolutePath()); } String state = Environment.getExternalStorageState(); /*if (!android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)){ // no sd card mounted Log.e("Creating Temp Ring Tone", "No SD card inserted."); return null; }*/ //TODO debugging on phone this happens for some reason String ringtonesPath = root.getAbsolutePath() + File.separator + "ringtoness" + File.separator; String ringToneFileName = resourceName + ".mp3"; try { InputStream is = getResources().openRawResource(resourceId); File ringToneRoot = new File(ringtonesPath); // create the charlie hodge dir if we need to if(!ringToneRoot.exists()) { ringToneRoot.mkdir(); } if(!ringToneRoot.exists()) { Log.e("Making Dir", "Didn't create the directory!>!?!"); } // create the ring tone if we need to File ringTone = new File(ringtonesPath+ringToneFileName); if(!ringTone.exists()) { ringTone.createNewFile(); } // write to the file OutputStream out = new FileOutputStream(ringTone); byte buf[]=new byte[1024]; int len; while((len=is.read(buf))>0) out.write(buf,0,len); out.close(); is.close(); return ringTone; } catch (Exception e) { //something happnened Log.e("Creating Temp Ring Tone", "Something happened when creating the ringtone: "+e.getMessage()); return null; } }