I'm trying to make a filtering query:
public Cursor runQuery(CharSequence constraint) {
return getActivity().getContentResolver().query(
Phone.CONTENT_URI,
new String[] {Phone.DISPLAY_NAME, Phone.NUMBER, Phone.TYPE, Phone._ID },
Phone.DISPLAY_NAME + " LIKE '" + constraint + "%'",// <-- problem here
null,
Phone.DISPLAY_NAME);
}
But LIKE operator works in case-sensitive way for non-ascii chars (as SQLite docs says). Is there a way to make case-insensitive LIKE? (p.s. i test on russian symbols)
Things that not works:
- COLLATE NOCASE (UNICODE, LOCALIZED)
- upper(), lower()
Need help or advice. Thank you.