Hello
I am starting Android and am using SDK 1.5 r2 and hope someone can
suggest to me where problem could lie.
The following code does two simple things, Create URL object and then
return InputStream by using openStream().
When I call openStream() I get a io.FileNotFoundException.
Here is sample code:
try {
URL feed = new URL("http://news.google.co.uk/news?
pz=1&ned=uk&hl=en&output=rss");
try {
InputStream is = feed.openStream();
} catch (IOException e) {
// TODO Auto-generated catch block
Log.d("LOG", e.toString());
}
My manifest contains the Internet permission:
<uses-permission android:name="android.permission.INTERNET" />
The problem is as though the DNS cant resolve the domain ?
Any ideas ??
Thanks for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---