Try the following:
db.query(TABLENAME,
new String[] { _ID,NAME,CHILDREN },
NAME+"=? OR "+CHILDREN+" > ? ",
new String[] { "John","3"},
null,
null,
" 25 OFFSET 100");
Note that all strings are strings, so where clause substitutes must also be strings
source
share