database - Android: cursor.getCount() -


i'm wondering if there alternative cursor.getcount() way expensive! goal run 1 query first, if cursor null or cursor.getcount() <=0 need run query.

but since underlying data can large, getting application not responding getcount() call. better solution it?

if cursor empty, movetofirst false


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

Admob integration with pygame in android -

.htaccess: Transfer name to index.php if not directory public -