1. Download our Official Android App: Forums for Android!

Apps Multiple String Selection Arguments

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

  1. niccloud

    niccloud Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Sep 29, 2010

    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...