after bootup,crashing

前端 未结 5 1755
轮回少年
轮回少年 2021-01-16 02:40

My application is using a bootup service.In the service i have to get values from a database,but the app is crashing as it tries getting the values...

The logcat err

5条回答
  •  半阙折子戏
    2021-01-16 03:43

    From the error it seems that you are fetching some content from the Database in the Cursor. But fetching the content from the Cursor you need to point the Cursor to the first row that your cursor contains. So you need to apply cursor.moveToFirst(); to get it working, if this is the case. Else you should post the full source or the code where you feel its crashing.

提交回复
热议问题