Invalid statement in fillWindow()

by creativepragmatic » Mon, 01 Mar 2010 23:40:52 GMT

Sponsored Links
 Hello Everyone,

I know the error will probably be painfully obvious to you but using
cursor.getCount() on the result of the following returns a 0 when
there are multiple items in the table and trips the error "Invalid
statement in fillWindow()".

        public Cursor getListItemsCursor(long _listId) {

                Cursor cur = db.query(LIST_ITEMS_TABLE,
                        new String[] { KEY_ID, KEY_ITEM_NAME, 
                                KEY_LIST_ID + "=" + _listId, null, null, null, 

                return cur;

Thank you in advance for any assistance,



Invalid statement in fillWindow()

by creativepragmatic » Tue, 02 Mar 2010 00:48:20 GMT

 Never mind.  It works.  I am not sure why it works now but I am moving

On Mar 1, 10:40am, creativepragmatic <>


Sponsored Links

Invalid statement in fillWindow()

by creativepragmatic » Tue, 02 Mar 2010 01:08:45 GMT

 I think I figured it out.  I was calling getCount() after the database
connection was closed.

On Mar 1, 11:48am, creativepragmatic <>


Other Threads

1. AW: mapview key problems

Hi Ian,

Do you have the following entires in your AndriodManifest.xml?

<uses-library android:name="" />
Which should be within <application>


<uses-permission android:name="android.permission.INTERNET" />
Within <manifest>

Otherwise it wont work


-----Ursprngliche Nachricht-----
[] Im Auftrag von ian
Gesendet: Dienstag, 6. Oktober 2009 17:22
An: Android Developers
Betreff: [android-developers] Re: mapview key problems

Well I think you are correct about that superclass problem. But I'm
unsure how to fix it. Any suggestions?





2. Implements Filterable question


I'm using custom Adapter extends BaseAdapter. Unfortunately
BaseAdapter doesn't implements Filterable interface.
That's a reason I can't use setTextFilterEnabled(true) functionality.

Where can I learn how ArrayAdapter implements Filterable interface?

There is my simple code:

private class MyDataAdapter extends BaseAdapter implements Filterable
    List<MyObject> _data;
    public Filter getFilter()

         return new MyFilter(_data);

    private class MyFilter extends Filter
        List<MyObject> _data;

        public MyFilter(List<MyIntent> data)
                _data = data;
                protected FilterResults performFiltering(CharSequence 
constraint) {

                protected void publishResults(CharSequence constraint,
                                FilterResults results) {


Thanks in advance,


3. how to add item to hyperlink context menu

4. DatePicker.init crashes without reason

5. Crossword Puzzle in Android

6. Any plans to support Voice Dialing through Bluetooth (HFP)?

7. Fedora Eclipse doesn't let me install Android's ADT plugin