android - SimpleCursor Adapter ,LoaderManager IllegalState Exception or StaleData Exception -
i have gridview populated of simplecursor adapter , loader manager(support v4). content of gridview fetched web server of pagination. if fastly switch view between detailed view , gridview during webservice call got illegalstate error /staledataexception.
05-15 00:36:54.114: e/androidruntime(10656): java.lang.illegalstateexception: attempt re-open already-closed object: sqlitequery: select * product_list (url = ? ) 05-15 00:36:54.114: e/androidruntime(10656): @ android.database.sqlite.sqliteclosable.acquirereference(sqliteclosable.java:55) 05-15 00:36:54.114: e/androidruntime(10656): @ android.database.sqlite.sqlitequery.fillwindow(sqlitequery.java:58) 05-15 00:36:54.114: e/androidruntime(10656): @ android.database.sqlite.sqlitecursor.fillwindow(sqlitecursor.java:151) 05-15 00:36:54.114: e/androidruntime(10656): @ android.database.sqlite.sqlitecursor.onmove(sqlitecursor.java:124) 05-15 00:36:54.114: e/androidruntime(10656): @ android.database.abstractcursor.movetoposition(abstractcursor.java:213) 05-15 00:36:54.114: e/androidruntime(10656): @ android.database.cursorwrapper.movetoposition(cursorwrapper.java:162) 05-15 00:36:54.114: e/androidruntime(10656): @ android.support.v4.widget.cursoradapter.getview(cursoradapter.java:247) 05-15 00:36:54.114: e/androidruntime(10656): @ android.widget.abslistview.obtainview(abslistview.java:2452) 05-15 00:36:54.114: e/androidruntime(10656): @ android.widget.gridview.makeandaddview(gridview.java:1331
)
maybe forgot add adapter.swapcursor(null) in resetloader callback? encountered same log while missing , opening + closing listfragment several times..
Comments
Post a Comment