Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Request is never getting complete.

When I doing async call it is always going into onFailure method. I have tested url in browser, it opens up there nicely. I don't understand what I am missing?

url of error:- https://drive.google.com/file/d/0B8jHelS14namSkI3anliZ2hoY2s/view?usp=sharing

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

Two things you should check:

  1. Are you giving you app internet permissions in the manifest correctly?
  2. Can your emulator access the internet? (Check by trying to use the emulator's web browser.)

If either of those don't work can you post your code and app manifest so we can take a look?

hey Thanks,

This just got fixed. My internet was not working on my emulator. I fixed that and it worked.

Thank you very much.