Re: [android-developers] Re: Json paser showing array length as 0.. pls help

2010-11-24 Thread Caker
why you don't use the gson library for json ? checkout http://code.google.com/p/google-gson , easy coding ... On Wed, Nov 24, 2010 at 5:33 PM, Atik wrote: > i have checked the permission in menifest and  i replaced the code > snippet as u gave me , but still its giving me null pointer exception

[android-developers] Re: Json paser showing array length as 0.. pls help

2010-11-24 Thread Atik
i have checked the permission in menifest and i replaced the code snippet as u gave me , but still its giving me null pointer exception and i m still too much worried.. thx for the help sir.. waiting for ur helpfull reply On Nov 24, 2:23 pm, Sarwar Erfan wrote: > I think you understand that i

[android-developers] Re: Json paser showing array length as 0.. pls help

2010-11-24 Thread Sarwar Erfan
I think you understand that it has nothing to do with the line you specified. However, I suggest you do the followings: #1: Check whether you have added the INTERNET permission to android menifest. You need to add this: It is required to be added to the AndroidMenifest.xml file. Under menifest t

[android-developers] Re: Json paser showing array length as 0.. pls help

2010-11-24 Thread Atik
thx bro..aftre changing the key now its giving me null pointer exception for the same code.. for the following lines line number 51 in JSONHelper Class JSONObject jsonObject = getJSONObject(httpResponse); line number 160 in JSONHelper Class if (httpResponse.getStatusLine().toString().equals("HTTP/1

[android-developers] Re: Json paser showing array length as 0.. pls help

2010-11-24 Thread Sarwar Erfan
On Nov 24, 12:33 pm, Atik wrote: > hi guys this the class where i m parsing the values > >                         resultsJsonArray = jsonObject.getJSONArray("resuslt"); Is this spelling mistake in your actual code? (You wrote resuslt instead results) Regards Sarwar Erfan -- You received t