ContentProvider count(*)


Last Updated:

  1. Gabox01

    Gabox01 New Member This Topic's Starter

    Joined:
    Oct 9, 2010
    Messages:
    1
    Likes Received:
    0
    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 (Text):
    1.  public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
    2.             String sortOrder) {
    Thanks,
    Gabox
     

    Advertisement

Share This Page

Loading...