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 DbManager { Context context; private SQLiteDatabase db; private final String DBNAME = "studentsdb"; private final int DBVER = 1; private final String TBLNAME = "students"; final static String SID = "id"; final static String SNAME = "name"; final static String SCOURSE = "course"; public DbManager(Context context) { this.context = context; CustomHelper helper = new CustomHelper(context); this.db = helper.getWritableDatabase(); } public ArrayList> getAllRowsAsArrays() { ArrayList> dataArrays = new ArrayList>(); Cursor cursor; try { cursor = db.query( TBLNAME, new String[]{SID, SNAME, SCOURSE}, null, null, null, null, null ); cursor.moveToFirst(); if (!cursor.isAfterLast()) { do { ArrayList dataList = new ArrayList(); dataList.add(cursor.getLong(0)); dataList.add(cursor.getString(1)); dataList.add(cursor.getString(2)); dataArrays.add(dataList); } while (cursor.moveToNext()); } } catch (SQLException e) { Log.e("DB Error", e.toString()); e.printStackTrace(); } return dataArrays; } private class CustomHelper extends SQLiteOpenHelper { public CustomHelper(Context context) { super(context, DBNAME, null, DBVER); } @Override public void onCreate(SQLiteDatabase db) { String sql = "create table " + TBLNAME + " (" + SID + " integer primary key autoincrement not null," + SNAME + " text," + SCOURSE + " text" + ");"; db.execSQL(sql); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE IF EXISTS " + TBLNAME); onCreate(db); } } }