force close at cursor line!

前端 未结 1 810
傲寒
傲寒 2021-01-27 12:28

Hy! I\'m trying to create an application that looks for gps data that was stored in SQlite database. But I\'m facing a problem: I built an DbAdapter class that creates my databa

相关标签:
1条回答
  • 2021-01-27 12:55

    first try to access directly by copying

        return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_LONGITUDE,KEY_LATITUDE,KEY_COUNTRY,KEY_TOWN,KEY_STREET}, null, null, null, null, null);
    

    instead of calling it by method. If that works, check if curser is available in the method. If it is, try to reduce the SQLQuery like

        return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_LONGITUDE}, null, null, null, null, null);
    

    and add more columns step by step.

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