Room Database Queries Using DAO

room database queries using dao

The first two articles, we have learned how to create Room database in android studio. Also, we quickly learned how to insert, update, delete and collect rows from it. If it is the first time to visit Android Hands website, you can use the below links to study Room Database from the first part. Furthermore, In this article we will learn in depth how use Room Database Queries in Android Studio Using DAO (Data Access Objects). 1- Room Database in Android Studio through simple To Do List App. 2- Room…

Read More

Room Database Entities Relationships

room relationship between entities

In this article we will firstly discuss what is Room database entities relationships. Also, what are the types of relationships between entities. After that, we will apply the most common relationship in our to do list app. As, we will learn how to add sub items for each item created in the To-Do list app. Moreover we will use Nested RecyclerView to show the horizontal sub items. In the linked article below, we learned how to create simple to do list app using Room Database. Also, we learned how to…

Read More

Room Database Migration Android Studio

room database migration android studio

When we use Room database in our android project, we need to add or make changes in the database. Imagine that you published your app and the users added their data in the app database. Then, you have upgraded the app database and launched a new update for your project. In this case, the users lose their database. So, it is important to preserve users data that already saved in their devices when you change the database schema. For this reason, we need to understand Room Database Migration in Android…

Read More

Room Database Android Studio

room database android studio

This tutorial describes how to create Room Database in Android Studio. It is part of Local Persistence tutorials. Local Persistence means the storage of data to the device for later use, even after the program that created it has been closed. Apps that handle non-trivial amounts of structured data can benefit greatly from persisting that data locally. The most common use case is to cache relevant pieces of data. That way, when the device cannot access the network, the user can still browse that content while they are offline. Any…

Read More

Android SQLite Database Tutorial

Android SQLite Tutorial

Android SQLite Tutorial Android SQLite Database Tutorial is part of local persistence tutorials. Local Persistence means the storage of data to the device for later use, even after the program that created it has been closed. Options: 1.Using a SQLite database and Room Database. This is (obviously) the most powerful option, especially for querying data. 2.Using shared preferences. This is great for simple data, it’s very easy to use. Probably not the best way to store complicated objects or large amounts of data. 3.Using local files. Not good for querying…

Read More