[android-developers] Server response

2012-03-29 Thread arun kumar
am having a button in the activity (button) ...if i click the button then it fetches data from the server .if data is sucess then i has to show toast as sucess...after if i click button while fetching data from the server if net or wifi disconnect then it has to show (wifi or net disconnect toast).

Re: [android-developers] Server Response

2011-02-09 Thread TreKing
On Wed, Feb 9, 2011 at 5:24 PM, Atif Musaddaq wrote: > Can any one help me and tell me what i am doing wrong here ? why it is > not comparing the condition ? responseText is already string and > also comparing String http://www.google.com/search?q=how+to+compare+strings+in+java http://www.devdai

Re: [android-developers] Server Response

2011-02-09 Thread Marc Petit-Huguenin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/09/2011 03:24 PM, Atif Musaddaq wrote: > Hi, Guys > > I am sending some data to the PHP server and based on this data server > is sending "true" or "false" back to me. > > e.g > > echo "true"; > OR > echo "false"; > > Now on the android sid

[android-developers] Server Response

2011-02-09 Thread Atif Musaddaq
Hi, Guys I am sending some data to the PHP server and based on this data server is sending "true" or "false" back to me. e.g echo "true"; OR echo "false"; Now on the android side i write this code in Post method try { post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse res