D Derek Jee Active Member Licensed User Longtime User Jul 31, 2015 #1 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.
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.
S sorex Expert Licensed User Longtime User Jul 31, 2015 #21 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
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.
D Derek Jee Active Member Licensed User Longtime User Jul 31, 2015 #22 confusion is a semi permanent state for me most days .. I have the HTTPJob and HTTPUtils2Service modules in my designer.. Upvote 0
confusion is a semi permanent state for me most days .. I have the HTTPJob and HTTPUtils2Service modules in my designer..
S sorex Expert Licensed User Longtime User Jul 31, 2015 #23 ok, no problem with that for the next project keep in mind that both are kind of outdated. more info here > https://www.b4x.com/android/forum/threads/okhttp-replaces-the-http-library.54723/#content Upvote 0
ok, no problem with that for the next project keep in mind that both are kind of outdated. more info here > https://www.b4x.com/android/forum/threads/okhttp-replaces-the-http-library.54723/#content
D Derek Jee Active Member Licensed User Longtime User Jul 31, 2015 #24 Thank you.. I will bear that in mind.. I though I had downloaded that version but maybe it was in another life.. Upvote 0
Thank you.. I will bear that in mind.. I though I had downloaded that version but maybe it was in another life..