[android-developers] Re: SQLite, Cursors, CursorIndexOutOfBoundsException

2011-05-26 Thread adek
rs/> > > http://android-mag.blogspot.com/2011/02/android-examples-how-to-use.html > > -- Kostya > > 2011/5/26 Adrian Kajda > > > > > > > > > Can you give me a link with an example of that? > > > 2011/5/26 Kostya Vasilyev > > >> Y

[android-developers] Re: SQLite, Cursors, CursorIndexOutOfBoundsException

2011-05-26 Thread adek
using the indices here ... >     } >     cursor.close(); > > } > > Here it's not necessary to use getCount or moveToFirst, or handle the case > of no data in any special way. > > -- Kostya > > 2011/5/26 adek > > > > > > > > > Thanks. But this is

[android-developers] Re: SQLite, Cursors, CursorIndexOutOfBoundsException

2011-05-26 Thread adek
ces here ... >     } >     cursor.close(); > > } > > Here it's not necessary to use getCount or moveToFirst, or handle the case > of no data in any special way. > > -- Kostya > > 2011/5/26 adek > > > > > > > > > Thanks. But this is strange

[android-developers] Re: SQLite, Cursors, CursorIndexOutOfBoundsException

2011-05-26 Thread adek
veToFirst()". > > if(cursor.getCount() > 0) > { >    cursor.moveToFirst(); >    ... processing ... > > } > > On May 26, 3:12 am, adek wrote: > > > > > > > > > Hello, > > > As a beginner in android java world I need your help. I&

[android-developers] SQLite, Cursors, CursorIndexOutOfBoundsException

2011-05-25 Thread adek
Hello, As a beginner in android java world I need your help. I've got problem with famous "CursorIndexOutOfBoundsException". I'm using SQLite db, and I have two cursors, I'm getting some rows from database. I need to get some previous values with some conditions with second cursor (c2) and put th