{"id":3718,"date":"2011-11-19T11:11:17","date_gmt":"2011-11-19T05:41:17","guid":{"rendered":"http:\/\/windowsvj.com\/wpblog\/2011\/11\/make-your-android-app-internet-compatible\/"},"modified":"2011-11-20T20:50:11","modified_gmt":"2011-11-20T15:20:11","slug":"make-your-android-app-internet-compatible","status":"publish","type":"post","link":"http:\/\/windowsvj.com\/wpblog\/2011\/11\/make-your-android-app-internet-compatible\/","title":{"rendered":"Make your android app Internet compatible"},"content":{"rendered":"<p><em><font style=\"background-color: #cccccc\">Rectify <strong>java.net.SocketException: Permission denied (maybe missing INTERNET&#160; permission) <\/strong>error<\/font><\/em><\/p>\n<p>By default, permissions for accessing Internet by an Android file are off. If you wish to do the same you may need to add a simple line into the manifest file of your Project. The permission &quot;android.permission.INTERNET&quot; allows applications to open network sockets.<\/p>\n<p align=\"center\"><a href=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image29.png\" class=\"thickbox\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"image\" border=\"0\" alt=\"image\" src=\"http:\/\/windowsvj.com\/wpblog\/wp-content\/uploads\/2011\/11\/image_thumb29.png\" width=\"185\" height=\"209\" \/><\/a><\/p>\n<p>You may receive an error like : <\/p>\n<blockquote>\n<p>WARN\/System.err(): java.net.SocketException: Permission denied (maybe missing INTERNET permission)<\/p>\n<\/blockquote>\n<p>This error probably comes up when you do not have Internet permissions set in your Android app. So if you do not have permissions set in your manifest file, add the following line in your <code>AndroidMainfest.xml<\/code> file that can then have access to the internet:<\/p>\n<blockquote>\n<pre><code> &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;&gt;&lt;\/uses-permission&gt;<br \/><\/code><\/pre>\n<\/blockquote>\n<p>Your Android Manifest XML file may look like this once you have added the permission : <\/p>\n<blockquote>\n<pre><code>&lt;manifest xlmns:android...&gt;<br \/> ...<br \/> &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;&gt;&lt;\/uses-permission&gt;<br \/>&lt;\/manifest&gt;<\/code><\/pre>\n<\/blockquote>\n<pre><font face=\"Verdana\">Compile the project to get it working. <\/font><\/pre>\n<pre><font face=\"Verdana\"><\/font><\/pre>\n<p><a href=\"http:\/\/androidnewscenter.com\/wp-content\/plugins\/RSSPoster_PRO\/cache\/3217b_221664-google-android-market-security_original.jpg\">ImageSource<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rectify java.net.SocketException: Permission denied (maybe missing INTERNET&#160; permission) error By default, permissions for accessing Internet by an Android file are off. If you wish to do the same you may need to add a simple line into the manifest file of your Project. The permission &quot;android.permission.INTERNET&quot; allows applications to open [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[257],"tags":[],"class_list":["post-3718","post","type-post","status-publish","format-standard","hentry","category-android-2"],"_links":{"self":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts\/3718","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/comments?post=3718"}],"version-history":[{"count":1,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts\/3718\/revisions"}],"predecessor-version":[{"id":3722,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/posts\/3718\/revisions\/3722"}],"wp:attachment":[{"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/media?parent=3718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/categories?post=3718"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/windowsvj.com\/wpblog\/wp-json\/wp\/v2\/tags?post=3718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}