Jack, Thank you very much. This is exactly what I needed.
Mike On Jun 1, 9:55 pm, "Jack Ha (T-Mobile USA)" <[email protected]> wrote: > You can do something like this: > > if (m_cursor.first()) { > do { > long id = m_cursor.getLong(0); > String title = m_cursor.getString(1); > .... > } > while (m_cursor.next()); > } > > -- > Jack Ha > Open Source Development Center > ・T・ ・ ・Mobile・ stick together > > The views, opinions and statements in this email are those of > the author solely in their individual capacity, and do not > necessarily represent those of T-Mobile USA, Inc. > > On Jun 1, 7:14 pm, sddandroid <[email protected]> wrote: > > > > > Hey guys. I'm wondering how to loop through a Cursor to display > > content in a table I have. I know the mildly simple way of dropping > > my data into a ListActivity but the current app I am working on will > > not use that system. > > > Is it possible to loop through it like you would an array e.g. get the > > size of the cursor and then loop through it in a for loop? If so, how > > would I then access the data I'm pulling from my database? > > > Any help or guidance would be very much appreciated.- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

