[android-developers] Re: Server Response

2011-02-10 Thread Samsung Galaxy
Hi, Not executing :-( Server Side //Script if($count==1){ echo true; }else { echo false; } ? Client Side ... if (true.equals(responseText)){ Log.i(Output,responseText); responseText = here it should be true; Toast.makeText(

Re: [android-developers] Re: Server Response

2011-02-10 Thread Kostya Vasilyev
The empty line is due to there being a newline character in your server's response. Trim it before testing for true / false: response = response.trim(); -- Kostya 10.02.2011 13:50, Samsung Galaxy пишет: Hi, Not executing :-( Server Side //Script if($count==1){ echo true; }else { echo

[android-developers] Re: Server Response

2011-02-10 Thread Samsung Galaxy
Thanks All its working :-) On Feb 10, 11:57 am, Kostya Vasilyev kmans...@gmail.com wrote: The empty line is due to there being a newline character in your server's response. Trim it before testing for true / false: response = response.trim(); -- Kostya 10.02.2011 13:50, Samsung

Re: [android-developers] Re: Server Response

2011-02-10 Thread Kevin Duffey
Dang too late.. lol.. use responseText.trim().equalsIgnoreCase(true). Of course I'd check for null first.. On Thu, Feb 10, 2011 at 3:18 AM, Samsung Galaxy atif.musad...@gmail.comwrote: Thanks All its working :-) On Feb 10, 11:57 am, Kostya Vasilyev kmans...@gmail.com wrote: The empty