MyPage is a personalized page based on your interests.The page is customized to help you to find content that matters you the most.


I'm not curious

Build a Weather App

Course Summary

In this course we will learn about a very common and important element of Android development: downloading data from the Internet! We will request weather forecast data from a free API provided by forecast.io. We will then parse that data (in JSON format) and display it in a single-page app. We will also see how to handle errors and situations.


  • +

    Course Syllabus

    ● Exploring an API
        ◦ Introducing Stormy
        ◦ What is an API? What Does it Mean to Use One?
        ◦ The Forecast API
        ◦ Creating the Project
        ◦ Networking
    ● Networking
        ◦ How Do We Get Data from the Web?
        ◦ Networking on a Mobile Device
        ◦ Introducing OkHttp
        ◦ Getting the OkHttp Library Using Gradle
        ◦ Making an HTTP GET Request with OkHttp
    ● Concurrency and Error Handling
        ◦ Why Do We Use Asynchronous Processing?
        ◦ Making Our Code Asynchronous
        ◦ Handling Errors
        ◦ Configuring the Alert Dialog
        ◦ What To Do When the Network is Down
    ● Working with JSON
        ◦ Exploring the Data
        ◦ Creating the Model
        ◦ Beautiful, Wonderful JSON
        ◦ Introducing JSONObject
        ◦ Setting CurrentWeather from JSON
        ◦ Cleaning Up the Date and Time
        ◦ Setting the Weather Icon
    ● Building the Weather UI
        ◦ Starting at the Center
        ◦ Adding the Upper Half
        ◦ Working with LinearLayouts
        ◦ Finishing the Lower Half
    ● Hooking Up the Model to the View
        ◦ Using Butter Knife for Views
        ◦ Plugging in the Data
        ◦ Setting the Weather Icon
        ◦ Adding a Refresh Button
        ◦ Wrapping Up
     

     


Course Fee:
USD 25

Course Type:

Self-Study

Course Status:

Active

Workload:

4 - 48 hours / week

Attended this course?

Back to Top

Awards & Accolades for MyTechLogy
Winner of
REDHERRING
Top 100 Asia
Finalist at SiTF Awards 2014 under the category Best Social & Community Product
Finalist at HR Vendor of the Year 2015 Awards under the category Best Learning Management System
Finalist at HR Vendor of the Year 2015 Awards under the category Best Talent Management Software
Hidden Image Url

Back to Top