Design + Code an Android App from Scratch
This video shows how to insert data into android realm database. Create a model class that extends from RealmObject, define a list of instance variables that will act as columns in the table the class will act as the table itself, add a few getter and setter methods that are needed to read and update values to the Realm database. Add the dependency for Realm in build.grade file and hit sync now. Simply create a plain object of the model class, set the required values using the model setter or constructors, get an instance of realm, begin a transaction, write the values and commit the transaction. To see if the data was successfully saved, use the Realm Browser to view the database file with the help of the Android Monitor.