In the previous posts (part 1 and part 2), we looked into the new Architecture Components that were announced at Google I/O 2017. The Android Architecture components are a welcome addition to the Android Platform. Previously, it was difficult to architect Android applications as there were no official guidelines. The new Architecture Components help solve some of the more difficult problems that you may have faced when building your Android applications in the past.
In this blog post, we will examine the new classes that were introduced to handle Lifecycle changes. Continue reading Android Architecture Components – Looking at Lifecycles – Part 3
The Android Architecture components were recently announced at Google I/O 2017. There are a few different components that are a part of these libraries. These components can be used in isolation but work really well when used together. In the previous blog post, we looked at using Room and
LiveData. Make sure you read that post before this one, as this is a continuation. Continue reading Android Architecture Components – Looking at ViewModels – Part 2
This week at Google I/O 2017, there were a lot of new announcements for the Android Platform. One of the announcements was the new architecture guidelines for Android! This is a welcome addition to the Android platform.
Previously the Android team refrained from giving advice as to how you should structure your Android applications. For the most part this meant that anyone learning Android for the first time would just end up placing all their code into the
Activity files and occasionally moving stuff into an
AsyncTask if the app crashed with a
NetworkOnMainThreadException. Only after trying to add unit tests and instrumentation tests would you really understand that your code you have just spent so long developing was not easy to read, make changes to or to write tests for. Continue reading Android Architecture Components – Looking at Room and LiveData – Part 1