Multiple String Selection Arguments

Discussion in 'Application Development' started by niccloud, Oct 5, 2010.

  1. niccloud

    niccloud New Member
    5

    Sep 29, 2010
    3
    0
    5
    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 (Text):
    1. cursor = db.rawQuery("SELECT _id, name, category FROM outlet WHERE mall_id = ?  ORDER BY name",
    2.                 new String[]{""+mallId});
    3.        
    4.         cursor = db.rawQuery("SELECT _id, name, category FROM outlet WHERE name LIKE ? ORDER BY name",
    5.         new String[]{"%" + searchOutlet.getText().toString() + "%"});
    Thanks
     

    Advertisement

Share This Page

Loading...