Is SQLite cursor.getCount() expensive operation when executed on Android device?
Which is faster:
Cursor cursor = d
If you compare the time required for both code samples to execute, you'll notice it's the same because Cursor.moveToFirst() is eventually calling SQLiteCursor.getCount()
SQLiteCursor.getCount()