RuntimeError while retriving data from sqlite database in android

前端 未结 4 1686
情深已故
情深已故 2021-01-27 01:31

I\'m trying to insert and retrieve data from database in eclipse using sqlite, but it shows a RuntimeError. I create a layout with three edit texts and one button t

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-27 01:48

    You need init ctxx in onCreate() method:

    ctxx = this;
    

    If you want to know more about sqlite on android -> ok. But if you want to less code you can try some SqliteLibrary for android. (example ActiveAndroid, GreenDAO.....).

提交回复
热议问题