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

Pedro Duarte
Pedro Duarte
300 Points

How we can update the city location from api to android studio, show the city you are. Let me know your Thoughts.

*fahrenheit to celsius convertion i did //public int getmTemperature() { double celsioTemperature = (mTemperature - 32) * 5/9; return (int)Math.round(celsioTemperature); //

*to change the weather from other language i did // String forecastUrl = "https://api.darksky.net/forecast/" + apiKey + "/" + latitude + "," + longitude + "?lang=pt"; //

Now I am stuck to get the location from other place or city automatic by Api or my GPS... Anyway appreciate any help in the code.