我向数据库提出了3项要求,该数据库将Cursor a,b,c。 抽样调查:
public Cursor SearchQueryMoscow (String query ){
Cursor m;
a = sqldb.query(true, DataBase.TABLE_NAME, new String[]{KEY_ROWID,ADRESS2,TIME2
,PRICE2,OBJECT2,OPICANIE2,FINDWC2,DISTANSHIONMETRO2,CITY2},CITY2 + " IN ( ROMA ) and ("
+ " adress LIKE " + " %" + query + "% "
+ " OR gowc LIKE " + " %" + query + "% "
+ " OR timework LIKE " + " %" + query + "% "
+ " OR price LIKE " + " %" + query + "% "
+ " OR mesto LIKE " + " %" + query + "% "
+ " OR opicanie LIKE " + " %" + query + "% "
+ " OR distanshionmetro LIKE " + " %" + query + "% )"
, null, null, null, null, null);
return a ;}
Нow to combine the result of three cursors using MergeCursor? I wrote:
MergeCursor mergecursor = new MergeCursor(mCursors);
how to further combine the results of three cursors? example seen