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 com.db; //import java.io.FileNotFoundException; import java.util.ArrayList; import android.app.Activity; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.os.Bundle; import android.util.Log; import android.widget.ArrayAdapter; public class DataBaseWork extends Activity { private final String MY_DATABASE_NAME = "LoginDB"; private final String MY_DATABASE_TABLE = "Login1"; private final String tag="Niketa"; @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); ArrayList results = new ArrayList(); SQLiteDatabase myDB = null; try { /* Create the Database (no Errors if it already exists) */ this.createDatabase(MY_DATABASE_NAME, 1, MODE_PRIVATE, null); Log.i(tag,"database created"); /* Open the DB and remember it */ myDB = this.openDatabase(MY_DATABASE_NAME, null); Log.i(tag,"database opened "); /* Create a Table in the Database. */ try { myDB.execSQL("CREATE TABLE IF NOT EXISTS " + "LoginDB.Login1" + " (UserNm TEXT, PassWd TEXT)" +";"); Log.i(tag,"table created "); } /* catch(SQLException e1) { Log.i(tag,"SQL EXception"+e1); }*/ catch(Exception e) { Log.i(tag,"------"+e.getMessage()); Log.i(tag,"++++++"+e); } /* catch(SQLiteException se) { Log.i(tag,"SQLite Error--------"+se); }*/ /* Add two DataSets to the Table. */ myDB.execSQL("INSERT INTO " + MY_DATABASE_TABLE + " (UserNm, PassWd)" + " VALUES ('abc', 'def');"); Log.i(tag,"value inserted "); /* Query for some results with Selection and Projection. */ Cursor c = myDB.rawQuery("SELECT UserNm,PassWd" + " FROM " + MY_DATABASE_TABLE + ";", null); Log.i(tag,"value seleted "); /* Get the indices of the Columns we will need */ int firstNameColumn = c.getColumnIndex("UserNm"); int ageColumn = c.getColumnIndex("PassWd"); /* Check if our result was valid. */ if (c != null) { /* Check if at least one Result was returned. */ if (c.isFirst()) { int i = 0; do { i++; String firstName = c.getString(firstNameColumn); int age = c.getInt(ageColumn); String ageColumName = c.getColumnName(ageColumn); results.add("" + i + ": " + firstName + " (" + ageColumName + ": " + age + ")"); } while (c!=null); } } } catch (Exception e) { Log.i(tag,"Error----->"+e); } finally { if (myDB != null) myDB.close(); } this.setListAdapter(new ArrayAdapter(this, android.R.layout.simple_list_item_1, results)); } private void setListAdapter(ArrayAdapter arrayAdapter) { } private SQLiteDatabase openDatabase(String my_database_name2, Object object) { return null; } private void createDatabase(String my_database_name2, int i, int modePrivate, Object object) { } }