Problems with showing data from Cursor in Android
I get the following error in my LogCat when running my application:

> 06-28 13:39:57.827:
> ERROR/AndroidRuntime(10490):
> java.lang.RuntimeException: Unable to
> start activity
> ComponentInfo{random.test/random.test.ResultsActivity}:
> android.database.CursorIndexOutOfBoundsException:
> Index -1 requested, with a size of 2

The code that triggers the error:

    myCursor.getString(0)

I've checked out my SQL query, it works fine when i run it in SQLite Database Browser (I've pulled the db from my emulator, no alterations). It returns 1 column, with 2 rows:

    --------
    | test |
    --------
    | asd1 |
    --------
    | asd2 |
    --------

When I run getColumnIndex("test") on my cursor it returns '0'. So I'm all out of ideas here, it says an existing column doesn't exist?


Problems with showing data from Cursor in Android
===

I get the following error in my LogCat when running my application:

> 06-28 13:39:57.827:
> ERROR/AndroidRuntime(10490):
> java.lang.RuntimeException: Unable to
> start activity
> ComponentInfo{random.test/random.test.ResultsActivity}:
> android.database.CursorIndexOutOfBoundsException:
> Index -1 requested, with a size of 2

The code that triggers the error:

    myCursor.getString(0)

I've checked out my SQL query, it works fine when i run it in SQLite Database Browser (I've pulled the db from my emulator, no alterations). It returns 1 column, with 2 rows:

    --------
    | test |
    --------
    | asd1 |
    --------
    | asd2 |
    --------

When I run getColumnIndex("test") on my cursor it returns '0'. So I'm all out of ideas here, it says an existing column doesn't exist?

