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)
// loadFile() private void caricaFile(){ String[] proj = new String[]{LibreriaCP.KEY_ID}; String where = LibreriaCP.KEY_NAME + " = 'prova.txt'"; String data = ""; Cursor cercaFile = getContentResolver().query(LibreriaCP.CONTENT_URI, proj, where, null, null); startManagingCursor(cercaFile); if (cercaFile.moveToFirst()){ Uri uri = Uri.withAppendedPath(LibreriaCP.CONTENT_URI, Integer.toString(cercaFile.getInt(cercaFile.getColumnIndexOrThrow(LibreriaCP.KEY_ID)))); BufferedReader br = null; InputStream is; try { is = getContentResolver().openInputStream(uri); br = new BufferedReader(new InputStreamReader(is)); } catch (FileNotFoundException e) { errore(e.getMessage()); } try { String l; while ((l = br.readLine()) != null){ data += l; } mostra.setText(data); }catch (Exception er){ errore(er.getMessage()); } } else { errore("Non รจ stato trovato nulla nel Content Provider"); // Nothing were found in the CP } } // Save file private void salvaFile() { ContentResolver cr = getContentResolver(); ContentValues values = new ContentValues(); Uri rowUri; values.put(LibreriaCP.KEY_DATE, new GregorianCalendar(0,0,0).getTime().toGMTString()); values.put(LibreriaCP.KEY_DESCRIPTION, "File di prova"); // Test file values.put(LibreriaCP.KEY_NAME, "prova.txt"); rowUri = cr.insert(LibreriaCP.CONTENT_URI, values); try{ OutputStream os = getContentResolver().openOutputStream(rowUri); PrintStream ps = new PrintStream(os); ps.print(mostra.getText()); ps.close(); os.close(); } catch (Exception ioe){ errore(ioe.getMessage()); } }