Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Weather App (2015) Concurrency and Error Handling Making Our Code Asynchronous

Kevin Chen
Kevin Chen
2,561 Points

Failure on my call object.

I'm getting the problem of retrieving data from the URL... I checked the value of forecaseURL variable and it works on my browser. I suspect that the internet connection on my emulator is not working but I don't know how to fix it. I didn't find anything about the internet access when I configurated the AVD. Could you help me out? Thanks, Kevin

Seth Kroger
Seth Kroger
56,407 Points

You can always check the internet access on the emulator by starting the web browser and going to an external site like google.com or something. It would help to see your code and any message that was logged by the failure.

Kevin Chen
Kevin Chen
2,561 Points

It is because of the internet connection on the emulator. Everything is fine with the default AVD of android studio. But I couldn't get it work on genymotion... still couldn't figure out what was wrong with genymotion...

Seth Kroger
Seth Kroger
56,407 Points

Open Oracle VM Virtual Box (Genymotion installed this), select your emulator and click Setting then Network. Make sure enabled is checked and attached to "Host-only Adapter"