Android app not responding (ANR)

前端 未结 4 1756
长情又很酷
长情又很酷 2020-12-04 00:48

I have an android app, which listens to a socket from the server and retrieves data in json format and save data in the database. Resource cursor adapter is used to display

4条回答
  •  情歌与酒
    2020-12-04 01:01

    It looks like your DB cursor its full. After saving data from the cursor, close it, set it to null and create a new one so no buffers are kept in memory.

    this SO answer gives more information

提交回复
热议问题