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)
package android.examples; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.util.Log; public class DBHelper { class Row extends Object { public String body; public long rowId; public String title; public String subtitle; public int hour; public int minute; } private static final String DATABASE_CREATE = "create table todo2 (rowid integer primary key autoincrement, " + "title text not null, body text not null, hour integer, minute integer);"; private static final String DATABASE_NAME = "data2"; private static final String DATABASE_TABLE = "todo2"; private static final int DATABASE_VERSION = 1; private SQLiteDatabase db; public DBHelper(Context ctx) { try { db = ctx.openDatabase(DATABASE_NAME, null); } catch (FileNotFoundException e) { try { db = ctx.createDatabase(DATABASE_NAME, DATABASE_VERSION, 0, null); db.execSQL(DATABASE_CREATE); } catch (FileNotFoundException e1) { db = null; } } } public void close() { db.close(); } public void createRow(String title, String body,String subtitle,int hour,int minute) { ContentValues initialValues = new ContentValues(); initialValues.put("title", title); initialValues.put("body", body); initialValues.put("subtitle", subtitle); initialValues.put("hour", hour); initialValues.put("minute", minute); db.insert(DATABASE_TABLE, null, initialValues); } public void deleteRow(long rowId) { db.delete(DATABASE_TABLE, "rowid=" + rowId, null); } public List fetchAllRows() { ArrayList ret = new ArrayList(); try { Cursor c = db.query(DATABASE_TABLE, new String[] { "rowid", "title", "body","subtitle","hour","minute"}, null, null, null, null, null); int numRows = c.count(); c.first(); for (int i = 0; i < numRows; ++i) { Row row = new Row(); row.rowId = c.getLong(0); row.title = c.getString(1); row.body = c.getString(2); row.subtitle = c.getString(3); row.hour=c.getInt(4); row.minute=c.getInt(5); ret.add(row); c.next(); } } catch (SQLException e) { Log.e("booga", e.toString()); } return ret; } public Row fetchRow(long rowId) { Row row = new Row(); Cursor c = db.query(true, DATABASE_TABLE, new String[] { "rowid", "title", "body","subtitle","hour","minute"}, "rowid=" + rowId, null, null, null, null); if (c.count() > 0) { c.first(); row.rowId = c.getLong(0); row.title = c.getString(1); row.body = c.getString(2); row.subtitle = c.getString(3); row.hour=c.getInt(4); row.minute=c.getInt(5); return row; } else { row.rowId = -1; row.body = row.title = row.subtitle=null; row.hour=row.minute=0; } return row; } public void updateRow(long rowId, String title, String body, String subtitle,int hour,int minute) { ContentValues args = new ContentValues(); args.put("title", title); args.put("body", body); args.put("subtitle", subtitle); args.put("hour",hour); args.put("minute", minute); db.update(DATABASE_TABLE, args, "rowid=" + rowId, null); } }