Android app cannot access Internet

While making a new Android app, I kept receiving errors like UnknownHostException, null pointers, and unresolved hosts.

It turns out you need to add a permission to your app within the app’s manifest file:

uses-permission android:name=”android.permission.INTERNET” />

Massive props goes out to this site for helping me out:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>