[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 atik0...@gmail.com 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 --

[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

[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: uses-permission android:name=android.permission.INTERNET / It is required to

[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 erfanonl...@gmail.com wrote: I think

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 atik0...@gmail.com wrote: i have checked the permission in menifest and  i replaced the code snippet as u gave me , but still its giving me null