Android Development: Retrofit with Kotlin
1h 47mIntermediate2021-08-12
Authors
Rahul Pandey
Android Lead at Facebook | Stanford Lecturer
Course details
Many apps use your mobile phone’s internet connection to get data. On Android, the primary way that apps get and post data over the internet is with a library called Retrofit. This course shows you how to use Retrofit with idiomatic Kotlin code that you can apply directly to your Android app. Instructor Rahul Pandey covers everything you need to know to build rich, networked Android apps. Rahul starts with helping you understand APIs and their uses. He explains concurrency, coroutines in Kotlin, and how both can benefit your app. Rahul steps you through getting started with an Android Retrofit project, as well as retrieving and sending data and handling authentication in your Android app. Finally, Rahul covers several advanced configuration options related to Retrofit.
Skills covered
KotlinAndroid DevelopmentAndroidMobile DevelopmentGoogleProgramming LanguagesOpen SourceSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Leveraging APIs in your Android app with Retrofit
- 02 - What you should know
1. Understanding APIs and Their Uses
- 03 - REST APIs and how Android apps use them
- 04 - HTTP methods and how Retrofit uses them in your Android app
- 05 - HTTP methods for reading data with an API
- 06 - HTTP methods for writing data with an API
- 07 - Using and translating API data in your Android app
2. Concurrency with Coroutines
- 08 - Why we need concurrency with networking
- 09 - What are coroutines and how do they help with networking
- 10 - Using coroutines in your Android app
3. Get Started with Retrofit
- 11 - Understand the starter code for the Android Retrofit project
- 12 - Include the Retrofit library in an Android app
- 13 - Define Kotlin data models for API objects
- 14 - Implement a Retrofit API interface
4. Retrieving Data with Retrofit
- 15 - Retrieve data with Retrofit in an Android app
- 16 - Chain API calls with Retrofit
- 17 - Handle failed requests within the coroutine
- 18 - Use query parameters with Retrofit
- 19 - Making requests without coroutines
5. Send Data and Authenticate
- 20 - Make a PUT request
- 21 - Make a PATCH request
- 22 - Make a POST and DELETE request
- 23 - Handling authentication in APIs
6. Advanced Configuration Options
- 24 - Change the names of properties
- 25 - Customize the data converter
- 26 - Form URL encoding
- 27 - Use ProGuard with Retrofit
Conclusion
- 28 - Next steps with Retrofit on Android