Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 589 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 589 Bytes

Realm-Data-Binding---master

This repo is totally based on Realm, Databinding and Volley. If you want to learn how to use Realm locally with in your project.

Example shown to read data from Realm:

public List get(View view){ RealmResults results = realm.where(Contact.class).findAll(); Log.d(TAG, String.valueOf(results));

    List<Contact> retVal = new ArrayList<Contact>();
    for (int i=0; i<results.size(); i++) {
        Contact realmObj = results.get(i);
        retVal.add(realmObj);
    }
    return retVal;
}