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 ch.egsolutions.alpha; import java.util.Random; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DbUtil { static final String KEY_ID="_id"; static final String KEY_NAME="name"; private static final String DB_NAME="tutorial"; private static final String TABLE_NAME="names"; private static final int DATABASE_VERSION = 1; private static final String DATABASE_CREATE = "create table "+TABLE_NAME+" ("+KEY_ID+" integer primary key autoincrement, " + KEY_NAME+" varchar not null);"; private Context context; private DatabaseHelper dbHelper; private SQLiteDatabase db; public DbUtil(Context context){ this.context=context; this.dbHelper=new DatabaseHelper(this.context); } private static class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper(Context context) { super(context, DB_NAME, null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL(DATABASE_CREATE); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.v("DBUTIL", "Upgrading database from version " + oldVersion + " to " + newVersion + ", which will destroy all old data"); db.execSQL("DROP TABLE IF EXISTS "+TABLE_NAME); onCreate(db); } } public void open(){ db=dbHelper.getWritableDatabase(); } public void close(){ dbHelper.close(); } public void insertRandomNames(){ db.execSQL("DELETE FROM "+TABLE_NAME); String s = "QWERTZUIOPASDFGHJKLYXCVBNM"; Random r = new Random(); ContentValues values=new ContentValues() ; for(int i=0;i<200;i++){ values.clear(); values.put(KEY_NAME, s.substring(r.nextInt(s.length()))); db.insert(TABLE_NAME, null, values); } } public Cursor fetchAllData(){ return db.rawQuery("SELECT * FROM "+TABLE_NAME+" ORDER BY "+KEY_NAME+" ASC", null); } }