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.

enter image description here


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -