Make sure the Cursor is initialized correctly before accessing data from it

后端 未结 7 411
死守一世寂寞
死守一世寂寞 2020-12-06 15:17

Im trying to get data from my DB.

This is my code:

String[] columns = new String[] {COLUMN_FACEBOOK_ALBUM_COVER, COLUMN_FACEBOOK_ALBUM_IS_ACTIVE};

          


        
相关标签:
7条回答
  • 2020-12-06 15:58

    I have encountered this same exception before. In my case the cause was a database cell containing too much data (a huge string). Judging from the code (COLUMN_FACEBOOK_BIG_IMAGE) I guess that you have encountered the same problem. For the solution was to check the size of the strings that were put into the DB (and down scaling the image when needed). Hope this helps!

    0 讨论(0)
提交回复
热议问题