Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Blog Reader Android App Getting Data from the Web Parsing Data Returned in JSON Format

Will Schwarz
Will Schwarz
2,795 Points

Permission Denied: Missing Internet Permission

I'm still running into an Internet Permission issue, my network status permission works, but for whatever reason I still don't have the Internet permission

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.schwarzrules.blogreader" >

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


    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MainListActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
Justin Horner
Justin Horner
Treehouse Guest Teacher

Hello Will,

Are you using an emulator for testing?

Will Schwarz
Will Schwarz
2,795 Points

Yes, I'm using a Nexus 5 through Genymotion. It's not connected to broadband but is showing a wifi connection, does that require a separate permission? Hadn't even thought to use my phone to troubleshoot.

2 Answers

Justin Horner
STAFF
Justin Horner
Treehouse Guest Teacher

Hello Will,

Since you're using the emulator for testing, I would start diagnosing the issue by completely restarting the emulator to make sure the new Internet permission is being applied.

I hope this helps. If you still have the issue let me know and we'll try something else :)

Will Schwarz
Will Schwarz
2,795 Points

Justin, that did the trick! Simple troubleshoot that I didn't even think of.

Justin Horner
Justin Horner
Treehouse Guest Teacher

Awesome! I'm glad to hear that worked for you. Happy coding :)