openorcreatedatabase gives nullpointerexception

后端 未结 2 688
甜味超标
甜味超标 2021-01-27 20:59

i used databases before in the android app i am working on so usualy i open() the database when my query is finished i close() it again

with my latest change to my data

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-27 21:48

    The stacktrace says the Context you passed to SQLiteOpenHelper was null.

    The code doesn't show how you initialize your ABezoeAdapter where the Context comes from but that's where you should be looking to solve the problem.

提交回复
热议问题