Wednesday, 22 December 2010

Android Emulator Internet Not Working

One of the first Android problems I encountered when developing my Android App was that I was unable to get the Android AVD emulator to connect to the Internet. It was causing an Android Twitter4J exception. (Twitter4J is the library I was using that needed access to the internet).

In order to allow your Android Application (whether being run on an Android Phone or the Android AVD Emulator) to access the Internet you need to add the following android.permission.INTERNET line to the Android Manifest File:


   </application>

<uses-permission name="android.permission.INTERNET"></uses-permission>

</manifest>

No comments:

Post a Comment