Hey I'm doing a web service login to my app, I've tried to connect to the internet, but it fails.
I've used httpurl connection and at the time of execute openConnection() and getresponseCode() it omits the code in that line.
I also tried with
AsyncHttpclient but it also fails.
I do not know what I'm doing wrong, I've tried with my webpage on xampp and also with www.google.com
the first one wait for more or less 3 seconds and then says it failed. The second one, fails from the first execution.
I tried to enter to the internet with chrome in android and it works!
Check if you added INTERNET permission on Manifest
Check if you are on a PROXY configuration
If problem still persist, Try this
Just create a WebServer class instance passing your context
Now attach a listner to it
Now call the URL like Http GET reqest
Optionaly, If you are dealing with Http POST, Then create a DataRack
And connect
You need to include this library : com.github.sangeethnandakumar:TestTube:v2.5.2
Full documentations here - https://github.com/sangeethnandakumar/TestTube