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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -