UnknownHostException in HttpGet at the android widget
I have used HttpGet a lot in Android, but today, I started to build my first android widget. I used HttpGet for accessing some external feeds. I got UnknownHostException. I have placed in the use-permission tag in AndroidManifest.xml
Code
<uses-permission android:name="android.permission.INTERNET"></uses-permission> |
Well, I found that is because I placed this tag under manifest element. I should place it under the receiver element
Code
<receiver android:name="Widget" > | |
<uses-permission android:name="android.permission.INTERNET"></uses-permission> |
Finally the problem is solved.
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
Feedback awaiting moderation
This post has 18 feedbacks awaiting moderation...
Form is loading...