Room is an object mapping library that help us, the Android developers, to handle an SQLite database in the Android development. Continue reading “Android Room Persistence Library: Relations”
In February 2018 I was happy to be one of the speakers at MobOS in Cluj-Napoca. It was a nice experience, I received a lot of questions and I was impressed about the big number of the Android developers. My presentation was about Room so in this article I will cover a part of the concepts included in my slides.
The SOLID principles acronym was introduced by Michael Feathers for the principles that were defined by Robert C. Martin (Uncle Bob) in the early 2000s.
Usually when you create the design for an Android app we must add some transparency to different UI elements according to the requirements.
In order to have a transparent background, but not fully transparent, you should compute the hex number assigned to the desired percent of transparency in the alpha channel.
Have you felt that you need “something” to bind the data directly to the layout without writing some extra code!? “findViewById” method is scaring you!? The solution for these issues it’s called “Android Data Binding”.
This library offers both flexibility and broad compatibility so you could use it starting with Android 2.1 (API level 7+) and it was presented at Google I/O 2015.
It can be used with gradle 1.5.0-alpha1 or higher.
Firebase offers you the tools and infrastructure you need to build better apps and grow successful businesses. Firebase stores and syncs the data (json format) in real time so on your android app you will have the latest data without doing a new request.
This platform assures also the persistence of the data so even the app is offline you will have the data on your device.
Firebase has a lot of new features and these features are able to work independently, and they work even better together.
Android provides several ways to store user and app data. SQLite is one way of storing the application data, locally, on the device. SQLite supports all the relational database features common on the Oracle databases or Microsoft SQL Server. In order to access this database it must be used the API provided by Android which is available in the android.database.sqlite package.