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 TestCursorDbAdapter { // Database fields public static final String KEY_ROWID = "_id"; public static final String KEY_SERVICE_TYPE_NAME = "serviceTypename"; public static final String KEY_CATEGORY_DESCRIPTION = "category_desc"; public static final String KEY_CATEGORY_TYPE = "category_type"; private static final String DATABASE_TABLE_CATEGORIES = "citycategories"; private Context context; private SQLiteDatabase database; private TestCursorDatabaseHelper dbHelper; public TestCursorDbAdapter(Context context) { this.context = context; } public TestCursorDbAdapter open() throws SQLException { dbHelper = new TestCursorDatabaseHelper(context); database = dbHelper.getWritableDatabase(); return this; } public void close() { dbHelper.close(); } /** * Deletes all categories */ public boolean deleteCategories() { return database.delete(DATABASE_TABLE_CATEGORIES, "", null) > 0; } public long createCat(String catType, String catName, String catDesc) { ContentValues initialValues = createContentValuesCategories(catType, catName, catDesc); return database.insert(DATABASE_TABLE_CATEGORIES, null, initialValues); } public Cursor fetchCat(long rowId) throws SQLException { Cursor mCursor = dbHelper.getWritableDatabase().query(true, DATABASE_TABLE_CATEGORIES, new String[] { KEY_ROWID, KEY_SERVICE_TYPE_NAME, KEY_CATEGORY_DESCRIPTION }, KEY_ROWID + "=" + rowId, null, null, null, null, null); if (mCursor != null) { mCursor.moveToFirst(); } return mCursor; } public Cursor fetchAllCategories() { Cursor c = database.query(DATABASE_TABLE_CATEGORIES, new String[] { KEY_ROWID, KEY_SERVICE_TYPE_NAME, KEY_CATEGORY_DESCRIPTION, KEY_CATEGORY_TYPE}, null, null, null, null, null); Log.d("db", ">>>>>categories count = " +c.getCount()); return c; } public Cursor fetchFilteredCategories(String constraint) throws SQLException { Cursor c = database.query(DATABASE_TABLE_CATEGORIES, new String[] { KEY_ROWID, KEY_SERVICE_TYPE_NAME, KEY_CATEGORY_DESCRIPTION, KEY_CATEGORY_TYPE }, KEY_SERVICE_TYPE_NAME + " LIKE '%" + constraint + "%'", null, null, null, null); Log.d("db", ">>>>>filtered count = " +c.getCount()); return c; } private ContentValues createContentValuesCategories(String serviceTypeType, String catName, String categoryDesc) { ContentValues values = new ContentValues(); values.put(KEY_CATEGORY_TYPE, serviceTypeType); values.put(KEY_SERVICE_TYPE_NAME, catName); values.put(KEY_CATEGORY_DESCRIPTION, categoryDesc); return values; } }