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. Diplay Logcats logs on console

Hi developers,
I need a help. I need to display all Logcats Log on console of my emulator,
as do it the simple program "Hello World".
Can you help me?

--~--~---------~--~----~------------~-------~--~----~

2. How to use Android.mk to build a project with JNI library calls?

I am building an application with part of it implemented in JNI.

It looks like that it's possible to setup a project with an Android.mk
makefile to build everything into a single package. For example, there
is an example project under /development/samples/SimpleJNI.

My questions are:

1) Is it possible to author my own Android.mk makefiles to build my
application as a single .apk file, with both Java code, JNI libraries
and other configuration files?

2) Is it possible to build my project without re-building the entire
Android code base? i.e. how can I build my app by itself without
making it part of the Android build?

I've read this link: 
http://android.git.kernel.org/?p=platform/build.git;a=blob_plain;f=core/build-system.html

It looks like question to 1) is yes. But I can't find answers to
question 2).

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. SoftKeyboard Example Problem

4. How to run test_pvauthorengine?

5. Cell Broadcast support on Android?

6. 绛斿: ALSA proble

7. How to make games faster? Using view and redraw is way to slow it seems.