SocketException - Permission Denied even though permissions are added in manifest file

  • Replies:1
rashmikarade
  • Forum posts: 1

May 17, 2018, 10:07:37 AM via Website

I have added below permission in the AndroidManifest.xml.
uses-permission android:name="android.permission.INTERNET"

But still I am getting socketexception i.e., permission denied issue while I try to reach restful api. And also I tried disabling the firewall on the system where restful api is hosted.

Please let me know am I missing any configuration or any setting?

Reply
James Watson
  • Forum posts: 1,585

May 17, 2018, 11:08:26 AM via Website

You may simply send a GET request to your restful api with a web browser to verify if the api is actually available.

Download size < 0.15 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Blog: https://okblackcafe.blogspot.com Your 5-star is appreciated.

Helpful?
Reply