Data will get from API and store in local database (Realm) and when phone is not connect to internet it'll retrieve data from databse.
add this dependencies classpath 'io.realm:realm-gradle-plugin:2.2.1'
in project level build.gradle file
next step is add apply plugin: 'realm-android'
in application level build.gradle.
also add this line to application gradle.
realm { syncEnabled = true }
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
This Project is under apache licence v2.0