• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps ContentProvider count(*)

Gabox01

Lurker
Hi,

Anybody knows how to query a ContentProvider in way to return only the row count?

i want select count(*) from table

How can i pass that to this method? :

Code:
 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
            String sortOrder) {

Thanks,
Gabox
 
Back
Top Bottom