android 系统联系人按照拼音顺序分页加载
Cursor resultCursor = getContentResolver().query(
                    Phone.CONTENT_URI,
                    new String[] { "display_name", "sort_key", "contact_id",
                                "data1" }, null, null, "_id limit " + first + ","
                                        + max+" order by sort_key");

按照联系人拼音顺序分页读取联系人,老是报错,,求大神,错在哪里,应该怎么写

1个回答

拼音排序是可已的如下面语句
Cursor resultCursor = getContentResolver().query(
Phone.CONTENT_URI,
new String[] { "display_name", "sort_key", "contact_id",
"data1" }, null, null, "sort_key");

分页也是可以的
Cursor resultCursor = cr.query(Phone.CONTENT_URI, new String[] { "display_name", "sort_key", "contact_id",
"data1" }, null, null, "_id limit " + first + ","
+ max);

怎么用and连起来就有问题啊

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问