How do I use prepared statements in SQlite in Android?
To get a cursor, you can't use a compiledStatement. However, if you want to use a full prepared SQL statement, I recommend an adaptation of jbaez's method... Using db.rawQuery() instead of db.query().
db.rawQuery()
db.query()