Discussion:
URL.openStream() not works on Android Donut
DylanDog
2010-05-06 22:44:17 UTC
Permalink
Hi all,
i'm new to android however i have a difficult problem. I'm creating an
application getting information from url "www.giochinumerici.info".
The code is:

URL urlOb = new URL("http://www.giochinumerici.info");
InputStream stream = urlOb.openStream();

but the openStream() method throw an IOException only when the
application is running on android 1.6 (on android 2.1 code works fine)
and only for that url (or on corresponding aliases or ip address for
that url).
I've not tested the app on different platform...
Can I fix the problem? I want that the application can works on
android 1.6 too!


Thanks!
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
TreKing
2010-05-07 01:09:45 UTC
Permalink
but the openStream() method throw an IOException only when the application
is running on android 1.6
Does the log and stack trace not give you anything more than "IOException" ?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Loading...