How to use sqlite 3.7.4 with android 2.2? Because, any queries doesn't work on android 2.2, but work honeycomb,ICS. Please help me.
This is my query:
select snippet(content,'<b>','</b>','...',-1) as mytext,docid as _id from content where text match 'book*'"
public Cursor getSearchResult(String str) {
String query = new StringBuilder().append("select snippet(content,'<b>','</b>','...',-1) as mytext,docid as _id from content where").append(" text match '").append(str).append("*'").toString();
return database.rawQuery(query, null);
}
I'm using fts3 table.
Log:
android.database.sqlite.SQLiteException: SQL logic error or missing database
This query work on ICS.