Sending Json Request With Parameters Using Async Task Android
I am trying to send a json request to server with some parameters. The request is going and async task is working fine but it throws exception at server and says invalid url Here i
Solution 1:
I think, the issue could be with the server or Wifi Supplicate state. your device is only connected to wifi but have not passed the authenticity to access the internet or more technically, to exchange packets from server.
I would recommend you to use method to check device connectivity, I think it is the case with you as I had the similar state and I spent almost 1-2 hours to make it work. FOr internet connectivity check here is the link
I hope it would help.
Solution 2:
The link https://tt.student.com/back.json needs a certificate which should be trusted by android. Possibly you can accept the certificate by code but you would need that certificate. I tried to open in browser and it showed me untrusted certificate....
Post a Comment for "Sending Json Request With Parameters Using Async Task Android"