What does "invalid statement in fillWindow()" in Android cursor mean? -


i see error in logcat output,

cursor: invalid statement in fillwindow(). 

it happens when press key , goes default android listview before going custom listview.

what mean? how solve it? because not point line of code problem coming from.

when dealing listactivities, issue has cursor objects, cursoradapter objects, , database objects not being closed when activity stops, , not being set when activity starts or resumes.

i had make sure closed simplelistadapter, cursors, , database objects in respective order, in onstop method of activity called when tabactivity resumes.

i had been closing cursor , database objects, had not been closing simplelistadapter cursor.

/**    * onstop method    *     * perform actions when activity hidden view    *     * @return void    *     */   @override   protected void onstop() {     try {       super.onstop();        if (this.mysimplelistadapterobj !=null){         this.mysimplelistadapterobj.getcursor().close();         this.mysimplelistadapterobj= null;       }        if (this.mactivitylistcursorobj != null) {         this.mactivitylistcursorobj.close();       }        if (this.mydatabaseclassobj != null) {         this.mydatabaseclassobj.close();       }     } catch (exception error) {       /** error handler code **/     }// end try/catch (exception error)   }// end onstop 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -