I'm trying to query Room database(action 1) and then based on the returned results perform another action on the same table. however I noticed that every time I
I write an application with room database and I have a problem with reading data and use it in the mine thread. consider tables as those: Table1 | ID | Name |
Recently I saw this - Most data sources already provide main-safe APIs like the suspend method calls provided by Room or Retrofit. Your repository can take adva
I have 30 users displayed in a LazyColumn. On user click, I navigate forward to UserDetailsScreen. My question, is it better to pass the ID of the user and crea
@Query("Select * From Mstudent where (strftime('%d%m',dob)) = :todayDate order by (strftime('%d%m',dob))") List<Mstudent> getStudentByBirthDate(Da
I'm new to coding, put already in a lot of hours and feel like I'm progressing step by step. However, I've encountered a problem that I was not able to solve ev
I have an alert dialog that pops up when the user clicks the delete button. Alert dialog When the user clicks yes, I want the recyclerview item they selected to
I want to delete all from my table and reset autoincrement primary key. I do this : @Query("delete from sqlite_sequence where name='bin';") void delete(); @
I am trying to use Database Inspector in Android Studio. Why I run the app on the device, it inspector is always showing my application database (highlighted in
My app database class @Database(entities = {Detail.class}, version = Constant.DATABASE_VERSION) public abstract class AppDatabase extends RoomDatabase { p
I'm building an Android application based on an old Android project. In my new application I'm using Room. I have to use the same database that is used in the
I have a database which is prepopulated with some tables which is working fine. I have prepopulated my db. like this Room.databaseBuilder( get(),
I have a question. I edited my Room entity from this: @Entity(tableName = "users") public class User { public User(String username, String email, String passwo
I am building a custom keyboard for android, the one that atleast supports autocomplete suggestions. To achieve this, I am storing every word that user types (n
I have a question. I edited my Room entity from this: @Entity(tableName = "users") public class User { public User(String username, String email, String passwo
I have a Room database project which has a DAO and a Repository (mediator between different data sources) for each table in the database. It is a lot files and
I have a Room database with a table that holds users. Each user has an ID and a name. My goal is to change the name of the user based on the ID. Here is what I
I have a Room (v2.4.0-beta01) database, and whilst it works fine, during the build it gives a field vs getter mismatch warning on a few fields, included below.
I am getting a compilation error that I have described below. I have tried different solution provided on similar question like mine but neither of them worked
In my application, I save data to Firebase and to local storage using the Room library. With Firebase, everything is clear to me. But with Rom I had questions.