Android Question Unfortunately App has stopped HTTP Request with no data connection

Derek Jee

Active Member
Licensed User
Longtime User
Hello

I am testing my app to see what happens if I am making an http request and the data connection fails. Simply I turn off the wifi connection and run the process. When I run the request with no wifi I get the Unfortunately app has stopped message. I have put a try/end try around the code to see where it errors but it does not trap it. I am running in release mode too when I turn off my wifi. Of course I am checking for a connection before I run this process but I want to make sure the app doesn't crash if connection fails after the check..

Can anyone advise?

Many thanks,


Derek.
 
aren't you confusing the http with the httputils2 library?

hc_ was part of the old method I believe.

I never used the tag before myself and never had that issue either.
 
Upvote 0
confusion is a semi permanent state for me most days :).. I have the HTTPJob and HTTPUtils2Service modules in my designer..
 
Upvote 0
Thank you.. I will bear that in mind.. I though I had downloaded that version but maybe it was in another life.. :)
 
Upvote 0
Back
Top