query contacts in parts android
<p>How can i wrote a query in android to fetch contacts in parts.Suppose i have 100 contacts.i want to fetch 1-20,21-40,41-60,61-80,81-100.How can i write a qury for this in android.</p>

<p>this is my query :</p>

<pre><code>Cursor cursor = getContentResolver()
            .query(RawContactsEntity.CONTENT_URI,
                    new String[] { RawContactsEntity.DATA_ID,
                            RawContactsEntity.MIMETYPE,
                            RawContactsEntity.DATA1,
                            RawContactsEntity.DATA2,
                            RawContactsEntity.DATA3,
                            RawContactsEntity.DATA5,
                            RawContactsEntity.IS_PRIMARY,
                            RawContactsEntity.DATA15, RawContactsEntity._ID },
                    RawContactsEntity.DELETED + " = 0", null,
                    RawContactsEntity._ID);
    cursor.moveToFirst();
</code></pre>
