SQLite Database “context” passed to adapter

后端 未结 3 1791
天命终不由人
天命终不由人 2021-01-11 16:49

I have followed this tutorial to use SQLite db in my android app. Since I am a beginner I\'m having problems understanding "context" parameter used in the example.

3条回答
  •  鱼传尺愫
    2021-01-11 17:21

    Pass the ActivityName.this as class context as argument to the adapter class's constructor the ActivityName is the name of the Activityclass in which you are calling the adapter

提交回复
热议问题