Android\'s API provides a clean mechanism via SQLite to make queries into the contact list. However, I am not sure how to limit the results:
Cursor cur = ((Acti
I found out from this bug that Android uses the following regex to parse the LIMIT
clause of a query:
From
LIMIT clause is checked with following sLimitPattern.
private static final Pattern sLimitPattern = Pattern.compile("\\s*\\d+\\s*(,\\s*\\d+\\s*)?");
Note that the regex does accept the format offsetNumber,limitNumber
even though it doesn't accept the OFFSET
statement directly.