
The sample scenario is an item management software for an imaginary factory. We’re building on the previous article where we created a list with a RecyclerView and then added a click listener. Sample Scenario: Starter Project & Web Service I’ve updated the source code examples on GitHub to use AndroidX instead of the Android Support libraries. Nothing changes in terms of behavior with regards to our example. Updated on July 4th, 2019: Google is transitioning the additional libraries to AndroidX. The text in this article is still the original. Most importantly, the new solutions now also use Jetpack View Bindings instead of Kotlin synthetics. Updated on December 15th, 2020: the solution projects on GitHub have been migrated to the latest versions and dependencies.




In this article, I’ll show a walk-through using many of the newest components for a modern solution: Your source code will look entirely different depending on what approach you chose – so it’s important to make a good choice right at the beginning. You can choose from basic Java-style HTML requests, or go up to full-scale MVVM design patterns with the new Android Architecture Components. As a bonus, it’d be great if you could also perform CRUD operations (create, read, update, delete) with the data. Maybe all you want is to parse JSON from a web service and show it in a list in your Kotlin app for Android, while still being future-proof with a library like Retrofit. It might be overwhelming to choose the best way to access a web service from your Android app.
