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

Sean Gallagher
Sean Gallagher
2,054 Points

Android: Using Request.Builder() for a local JSON file?

For the weather app just finished the OkHttp Async chapter. If you were using your own JSON file and didn't have a spot to host it yet like on github. Is there a way to still use Request.Builder() and have the string forecastURL point to the file locally in the meantime?

I'm new to this so not sure where the JSON file would need to be on my machine to get picked up in the build and how you refer to a file locally in the code.

Thanks in advance.