I am working on an Android Application in which I got stuck in an issue. The problem is that, "When I run this method mentioned below in code, I am getting an error of socket Exception ((Permission denied) i.e, java.net.SocketException: socket failed:). I tried many time to resolve this issue, but still getting experiencing this problem. I know this is an android developer forum community where I am seeking some solution. Please help me for resolving my query. Here is code please check and reply me asap.
<code>
</code>
Have you set up your Manifest xml file to get permission to access the internet? i.e.
<uses-permission android:name="android.permission.INTERNET"/>
If you haven't, you need to inform any user of your app of the permissions you're requesting before you can use a resource.