Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
2.06 Add Internet permission
Browse files Browse the repository at this point in the history
  • Loading branch information
sdspikes authored and Lyla committed Mar 4, 2015
1 parent f18784f commit d1579a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/AndroidManifest.xml
Expand Up @@ -2,6 +2,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.sunshine.app" >

<!-- This permission is necessary in order for Sunshine to perform network access. -->
<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
Expand Down

2 comments on commit d1579a4

@linker85
Copy link

@linker85 linker85 commented on d1579a4 Oct 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I got an problem I have my weather url which works fine but when I run it from the app I get:
java.net.UnknownHostException: Unable to resolve host "api.openweathermap.org": No address associated with hostname

I added the internet permission an to everything as it´s show in the videos.
What could it be wrong?
Here is the url that I´m using:
http://api.openweathermap.org/data/2.5/forecast/daily?q=04800&mode=json&units=metric&cnt=7&id=524901&APPID=8fec1d6b295722570a4bc2736d6be386

Thanks in advance

Never mind I forgot to connect my device to internet :)

@francisrod01
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@linker85 Did you solve the problem with the connection?

Please sign in to comment.