Check Value from mysql using android -


i have table has field called sold , in field store 0 , 1. 1 means sold , 0 mean available.

k, problem ,i want change 0 available , 1 sold when diplay information emulator , here tried returning sold though have 0 in database :

if (sold.length()==0){      log.d("checking","inside = 0");      val = "available";}      else if (sold.length()>0)          log.d("checking","inside = 1");         val = "sold 

and sold contains value database.

please change 0 available , 1 sold.

if(sold.equalignorecase("0")) {    log.d("checking","inside = 0"); }else {    log.d("checking","inside = 1"); } 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -