• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Multiple String Selection Arguments

niccloud

Lurker
Hi i am new to android, i am trying to do a multiple string selection argument and i seem to be getting some problems.
I was hoping someone here can enlighten me. The code is written below
Code:
cursor = db.rawQuery("SELECT _id, name, category FROM outlet WHERE mall_id = ?  ORDER BY name", 
                new String[]{""+mallId});
        
        cursor = db.rawQuery("SELECT _id, name, category FROM outlet WHERE name LIKE ? ORDER BY name", 
        new String[]{"%" + searchOutlet.getText().toString() + "%"});
Thanks
 
Back
Top Bottom