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. How to execute a application automatically after android booting?

Hi all,

I have a application and it need be executed after android booting
Does someone have a suggestion that how to do it?
Thanks for your reply.

2. creating custom intent

Can anyone tell me what I am doing wrong, I'm sure it is real simple.
I am trying to create a custom intent but everytime I try to launch it
from another activity I get a "No Activity found to handle Intent"
error?  Am I failing to register the new intent somehow even though it
is in the manifest?


In other activity,produces error:

 Intent i = new Intent("com.example.Intent1");

In Receiver Activity:

In Manifest:

 <receiver android:name=".TestBroadcastReceiver"
android:enabled="true" >
         <action android:name="com.example.Intent1" />


In Code File:

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class TestBroadcastReceiver extends BroadcastReceiver {

        public void onReceive(Context context, Intent intent) {
                // TODO Auto-generated method stub




3. API to delete SIM contacts & Messages AND erasing the SD card contents

4. Compile problem after repo sync.

5. How to create a file in current directory?

6. Is it possible to call methods of a Activity from service.

7. Several errors with 1.5 + Linux.