File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes cannot connect to the internet through yamba app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "cannot connect to the internet through yamba app" Watch "cannot connect to the internet through yamba app" New topic

cannot connect to the internet through yamba app

sadanand adhikari

Joined: Apr 17, 2012
Posts: 1
Hello everyone,

I am facing a peculiar issue when connecting to the internet through the emulator. I am using r19 development tools and emulator as 2.2. I am working on the yamba app from learning android book. This app connects to the internet for the website The problem is , through the emulator i am able to to connect to the internet and visit websites such as google and the site mentioned above. However through my application, it gives me a UnknownHostException saying host is unresolved at

I have added the permissions for Internet in manifest as well. Attached is the manifest file. Let me know if anything additional is required to be done.

Thanks in advance

ps : brought to my notice about cross posting. Hence, I have already asked this on stack overflow and my awaiting a reply.
ps : any other etiquette i should know about ?
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

Hello Sadanand and welcome to the Ranch!
Would you please BeForthrightWhenCrossPostingToOtherSites ?
Thank you.
Al Finlay
Ranch Hand

Joined: Oct 26, 2012
Posts: 34
For the benefit of other learners, this error is most likely caused by a bug in the emulator software. Restart the emulator and try to connect to the api again.

Look towards the top of the emulator screen and check that the emulator has network connectivity.

If the emulator does not have connectivity, UnknownHostException appears to be thrown.
I agree. Here's the link:
subject: cannot connect to the internet through yamba app
It's not a secret anymore!