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_ITEM_QUANTITY},
                                KEY_LIST_ID + "=" + _listId, null, null, null, 
null);

                return cur;
        }


Thank you in advance for any assistance,

Orville

--



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.

On Mar 1, 10:40am, creativepragmatic <creativepragma...@gmail.com>



--


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 <creativepragma...@gmail.com>




--



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
automatically.
Does someone have a suggestion that how to do it?
Thanks for your reply.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. creating custom intent

Hi,
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?


Thanks,
Bob

In other activity,produces error:

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

In Receiver Activity:

In Manifest:

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

            </intent-filter>
        </receiver>


In Code File:

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

public class TestBroadcastReceiver extends BroadcastReceiver {

        @Override
        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.