defensive loop guards around cursors.

I did not realize that an error in moveToNext() would
result in a curor that isBeforeFirst() but not
isAfterLast().

Bug: 7465164
Change-Id: I5502f18e863ad48ec88397fdf0b4ec457be723dc
3 files changed
tree: 136a2882fdfa3e8f5560d812aa847ca36f66e581
  1. res/
  2. src/
  3. Android.mk
  4. AndroidManifest.xml