ok so heres what i got in there
try {
SQLiteDatabase db4 =
getApplication().openOrCreateDatabase("psalmsdb",0,null);
db4.execSQL("CREATE TABLE IF NOT EXISTS psalms " +
"(_id INTEGER
PRIMARY KEY, ps INTEGER, body TEXT, istitle TEXT)");
ContentValues data = new ContentValues(3);
data.put("ps", f1);
data.put("body", f2);
data.put("istitle", f3);
db4.insert("psalms","",data);
data.clear();
}
catch (FileNotFoundException e){
Log.e("FatalError", "TestDbContent:createDb:Db file not
found!");}
i = i +1+1; //to skip '$'
} //end of 'while i<300000' loop
and for whatever reason im getting the following error in eclipse
The method createDatabase(String, int, int, null) is undefined for the
type Application
i dont get it....
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en