I tried following this tutorial: Getting Data from the Web
I tried implementing it on Android 3.0, the latest platform for tablets, however, I get this error: \"
Are you able to reach that url from within the built-in browser?
If not, it means that your network setup is not correct. If you are in the emulator, you may have a look at the networking section of the docs.
If you are on OS/X, the emulator is using "the first" interface, en0 even if you are on wireless (en1), as en0 without a cable is still marked as up. You can issue ifconfig en0 down
and restart the emulator. I think I have read about similar behavior on Windows.
If you are on Wifi/3G, call your network provider for the correct DNS settings.
Restarting the emulator works in some scenario.
if you have USB internet like me the emulator seems to dislike connection being turned on and off so you may need to restart the emulator
Also, make sure that your device isn't on airplane mode and/or that data usage is enabled.
I had the same issue with the Android 10 emulator and I was able to solve the problem by following the steps below:
With this setup, you URL should work as expected.