1

Database doesn't work in android 2.x

view story
linux-howto

http://stackoverflow.com – When I'm trying to run my project in android 2.x and execute sqlcommands on the database, an error says that "close() was never explicitly called on database...". but it works fine in android 4.x. I think I should open and close database in my dbhelper but I don't know how to do it in this file. This is my DbHelper: public class DbHelper extends SQLiteOpenHelper{ public DbHelper(Context context) { super(context, "shareholders.db", null, 1); } @Override public void onCreate(SQLiteDatabase db) { try { // this.db = db; String sql = "CREA (HowTos)