Android. SQLite Exception: no such column _id

前端 未结 6 1262
鱼传尺愫
鱼传尺愫 2021-01-13 09:56

Im having some troubles trying to get the info stored in my database and showing it in a ListView.

This is the ListActivity where i want to show the rows:

         


        
6条回答
  •  说谎
    说谎 (楼主)
    2021-01-13 10:49

    If you created database for example with fields 'a', 'b' and 'c' and used this db then if you add new field (for ex. 'd') you need to recreate database on phone (just delete it).

提交回复
热议问题