I am working on a messaging app, I want to limit the number of result from SMS content provider so that I can implement endless scrolling (loading more data on scroll rather than loading the whole conversation at once).
Is there any way to select the top 50 conversations from SMS Content provider, and later to select 50 conversations from a given point ?
Cursor cur;
ContentResolver contentResolver = getContentResolver();
final String[] projection = new String[]{"*"};
Uri uriSMSURI = Uri.parse("content://mms-sms/conversations/");
cur = contentResolver.query(uriSMSURI, projection,
null, null, " date DESC");