7.2 Test-Driving the WeatherViewer App

Opening and Running the App

Open Android Studio and open the WeatherViewer app from the WeatherViewer folder in the book’s examples folder. Before running this app, you must add your own OpenWeatherMap.org API key. See Section 7.3.1 for information on how to obtain your key and where you should place it in the project. This is required before you can run the app. After adding your API key to the project, execute the app in the AVD or on a device.

Viewing a City’s 16-Day Weather Forecast

When the app first executes, the EditText at the top of the user interface receives the focus and the virtual keyboard displays so you can enter a city name (Fig. 7.2). You should consider following the city with a comma ...

Get Android How to Program, 3/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.