2016-12-15

In the last article we have learned about the database wrapper Green Dao that the best ORM for android application. If you have not read this article before, please check here Green Dao.

Android provides base component for storing data into database is SQLite. It is based on sql query based. So it will make our code lengthy and difficult to used in large app.  Green Dao is ORM based wrapper for Android database, but some how it also not completed to catch all minds.

Now Realm came into market for runtime database. The best thing realm is that can be used many platform like Android, iOS, Java etc. It is based on ORM realm Object basis. Its easy to use and easy to manage any of project.

In this article I am showing to add any object Item into database table and retrieve those objects and show on recyclerView by using realm. And if it is required to delete from realm then delete them.
Here is uploaded video that helps to understand the realm feature and what is am focusing in this article.

Thanks for watching this video. Lets create a sample android app to achieve this.

build.gradle project level

build.gradle app level

MainApplication.java

Note.java

NoteManager.java

MainActivity.java

activity_main.xml

NoteDetailActivity.java

activity_note_detail.xml

NoteAdapter.java

list_item_note.xml





Thanks for reading this article. I hope it will help you to understand.

Show more