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) Hooking Up the Model to the View Wrapping Up

I am trying to find out how to add my location to the weather app. If someone could please hep? thanks in advance

I am trying to find out how to add my location to the weather app. If someone could please hep? thanks in advance

2 Answers

There is pretty good documentation on the android developers site here. Look that over and see if you can get it. If you run into any problems, come back here and post the issue and I would be glad to help you through it. I have already added location services to my weather app, so I have a pretty good understanding of how to do it. The documentation seemed pretty straight forward and it was almost just copy and pasting the code from the documentation into my app.

Juan Francisco Andrade Álvarez
Juan Francisco Andrade Álvarez
23,997 Points

Ben Jakuben just showed a link of his location tutorial: http://blog.teamtreehouse.com/beginners-guide-location-android which is really great to understand its basics. There, he also recommends checking out a more organised version of his code here: https://github.com/treehouse/android-location-example-refactored Based on these two sources, one is ready to apply this knowledge in the Stormy app, and i think whichever one that needs location services. Try it, and come back to share your findings. Good luck.

Luke Liem
Luke Liem
6,367 Points

Ben's tutorial talks about starting a new project with a Google Map Activity.

Suppose I have an existing app with existing java and xml code base, is the best approach to copy these code into this new Google Map Project?

I do not see any tutorial to just add specific Google Map functionality, such as GPS location, into an existing app which is not build from scratch from a project with Google Map Activity.

I hope I have made myself clear.