android - Retriving data from database through checkboxes -
i have many checkboxes in activity. want when click on 1 of checkbox relevant search should made in database , value should retrived considering value of checkbox.
for eg. if have checked first checkbox
if(chk1.ischecked){ str="yes"; }
so query
select * database abc="yes";
but if have checked 2 or more checkboxes query changes.
select * database abc="yes" , pqr="yes";
there can many permutation , combinations these 10 checkboxes. can easiest way can make search work.
Comments
Post a Comment