addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwchatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrosseditemptyheartfacebookfolderfullheartglobegmailgoogleimagesinstagramlinklocation-pinmagnifying-glassmailminusmoremuplabelShape 3 + Rectangle 1outlookpersonplusprice-ribbonImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruseryahoo

Re: [blrdroid] Error parsing json data

From: user 1.
Sent on: Wednesday, January 1, 2014 5:31 PM
Ok fine. I got my problem solution. Now, I can show message on screen, if json response is empty else it display json data on app.
Thanks to Prathiba, Soumya and Archana. Really, you all post good information. That help me to resolve my problem. Now it doesn't crash my application also.



On Wed, Jan 1, 2014 at 5:07 PM, Pratibha <[address removed]> wrote:
Hi,

I agree to Soumya's answer. why dont you post your logcat here.


On Wed, Jan 1, 2014 at 4:29 PM, Sowmya Guru <[address removed]> wrote:
Hi ShivaPrakash,

If the reason is connectivity, you would want to check for Internet connection using Network manager before you make the call if it fails give a message to the user saying it failed because of connectivity. If you do not want to show a black screen you can cache the previous copy locally in the SQLite and still show a message saying it might be old data so connect to internet. 

Hope this helps. 

Kind Regards,
Sowmya.


On Wed, Jan 1, 2014 at 4:08 PM, shivaprakash <[address removed]> wrote:
I used "AsyncTask" already, everything is fine. When server not respond that time shows message on screen. Means, suppose in mobile there internet is not constant like computer, it might be very while moving from one place to another, because of network. That time we are not able to get data.


On Wed, Jan 1, 2014 at 3:58 PM, Archana <[address removed]> wrote:
Ok, when doing background process, should use "AsyncTask". Fetching data from server is a huge process, so it should not be done on main thread, AsyncTask will help you in doing in background. I think using AsyncTask will solve your problem. 


On Wed, Jan 1, 2014 at 3:48 PM, shivaprakash <[address removed]> wrote:
Hello Archana

Please read my mail, I mentioned that sometimes response is null. Not every time, sometimes it happens, the page should look like blank. Nothing display. So, in such situation, we show something on screen.

For example : In web application what happens is, when server is not responding properly, that time we show error page. So, in android also is possible to show error message on screen, like "Server not responding". But application won't crash, it is there but blank screen.


On Wed, Jan 1, 2014 at 3:39 PM, Archana <[address removed]> wrote:
This tut will help you to understand on JSON parsing, if "name value pair" does not match it will through null.



On Wed, Jan 1, 2014 at 3:33 PM, shivaprakash <[address removed]> wrote:
Hi All

Please any one help me in solving json error.
I am working with json, Sometime I get data from json response and it displays properly and sometime response not yet get and it display nothing on screen. So
how to overcome from this problem. 

If suppose json returns null value than show me toast message, but I can't able to recognize when it shows null values.


--
Thanks & Regards
Shivaprakash
[masked]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by shivaprakash ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about shivaprakash, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Archana ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Archana, visit his/her member profile

To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Thanks & Regards
Shivaprakash
[masked]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by shivaprakash ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about shivaprakash, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Archana ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Archana, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Thanks & Regards
Shivaprakash
[masked]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by shivaprakash ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about shivaprakash, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Sowmya Guru ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Sowmya Guru, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Thanks,
Pratibha Kulkarni




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Pratibha ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Pratibha, visit his/her member profile

To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Thanks & Regards
Shivaprakash
[masked]

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy