I have used a constructor for SQLiteOpenHelper as given below: (I have already implemented onCreate() and onUpgrade() methods)
public class DB_todos extends SQLiteOpenHelper{
DB_todos(Context context){
super(context, DB_NAME, null, DB_VERSION);
}
..........
}
The Runtime exception is: Exception Ljava/lang/NullPointerException; thrown while initializing Lapp/quicklook/DB_todos;
I am confused if the way i have used the constructor is legitimate. Please give your inputs to resolve this.