I'm trying to access this list of public twitts here,
from an android appli开发者_运维知识库cation through a HttpClient:http://api.twitter.com/1/statuses/public_timeline.json
I keep getting an Exception when connecting:
java.net.UnknownHostException: api.twitter.com
Why is this happening?
How can I fix this?Thank you
Make sure you have the INTERNET permission added to your manifest.
<uses-permission
android:name="android.permission.INTERNET" />
精彩评论