getDatabase called recursively when insert a record in oCreate of my DbHelper class
问题 When I'm trying to insert a record in onCreate method of my DbHelper class which is extended from SQLiteOpenHelper, this error will be rised. I've found some similar topics like these: Android getDatabase called recursively getWritableDatabase called recursively getDatabase called recursively but these are not going to help me. public class DbHelper extends SQLiteOpenHelper{ public int x=0; public DbHelper(Context context) { super(context, "shareholders.db", null, 1); } @Override public void