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

Miles Torres
Miles Torres
2,316 Points

How do I change the location from Alcatraz NY to a different place in the Stormy app?

I am trying to redo the app but with the area that I live in.

1 Answer

Hi Miles,

You have to lookup the geographical coordinates of your desired cities and then change it in the app's MainActivity or where you call the api.

e.g.:

final double latitude = 47.3454;
final double longitude = 11.7072;

You may also want to change the city name in the UI.

Best Regards, Philip