Hello, I've sorted that problem now. I'm using adb to check that the
database gets made and it does.

I have this error now.

53): Starting activity: Intent { cmp=com.targetshooterapp/.
DBAdapter }
E/CursorWindow( 1354): Bad request for field slot 0,-1. numRows = 1,
numColumns
= 2
D/AndroidRuntime( 1354): Shutting down VM
W/dalvikvm( 1354): threadid=3: thread exiting with uncaught exception
(group=0x4
001aa28)
E/AndroidRuntime( 1354): Uncaught handler: thread main exiting due to
uncaught e
xception
E/AndroidRuntime( 1354): java.lang.RuntimeException: Unable to start
activity Co
mponentInfo{com.targetshooterapp/com.targetshooterapp.DBAdapter}:
java.lang.Ille
galStateException: get field slot from row 0 col -1 failed
E/AndroidRuntime( 1354):        at
android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:2401)

One of the two tables I'm trying to populate is not being populated.
Could this be the reason for this error?

On Sep 3, 11:49 am, Kostya Vasilyev <[email protected]> wrote:
> Your database creation statements have "if exists" in them.
>
> Did you make sure the database actually got recreated?
>
> --
> Kostya Vasilyev --http://kmansoft.wordpress.com
>
> 03.09.2010 14:36 пользователь "kingh32" <[email protected]> написал:
>
> Thanks for spotting the comma.
> I've removed it but it still cites this query as an error.
> In fact, no matter what I try to do the same error is displayed.
> Even if I change the intent pointing to this class, to completely
> different non database related class I still get this error and it
> crashes.
> How is this possible?
>
> On Sep 3, 8:56 am, Kostya Vasilyev <[email protected]> wrote:
>
> >   You have an error in the SQL for...
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" g...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to