I have cursor initialized as follows:
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
The column index of a cursor is zero-based, so change:
cursorState = c.getString(1); cursorCapital = c.getString(2);
to
cursorState = c.getString(0); cursorCapital = c.getString(1);