or is it possible to use ContentValues dynamically ? If yes, how ?
Or how to solve my cardinal problem ?
If a rawQuery or execSQL is the best solution, where is the entry point to access db variable ?
Actually I try this:
public class XXXXOpenHelper extends AbstractXXXXOpenHelper {
public static SQLiteDatabase database;
@Override
public void onOpen(SQLiteDatabase db) {
database = db;
}
public class XXXXOpenHelper extends AbstractXXXXOpenHelper {
public static SQLiteDatabase database;
@Override
public void onOpen(SQLiteDatabase db) {
database = db;
}
On performance issue, I want to update all/some records with a complex statement at one step, eg
if I iterate it needs too much time. With this example I see only a static update value
or is it possible to use ContentValues dynamically ? If yes, how ? Or how to solve my cardinal problem ? If a rawQuery or execSQL is the best solution, where is the entry point to access db variable ? Actually I try this: