I have VisitingCardPOJO
form table. I want update single entry say where no=3
VisitingCardPOJO.java
public class VisitingC
I found the solution as and It worked
public void updateNewCard(Realm realm, VisitingCardPOJO card) {
realm.beginTransaction();
VisitingCardPOJO toEdit = realm.where(VisitingCardPOJO.class)
.equalTo("no", card.getNo()).findFirst();
toEdit.setName(card.getName());
toEdit.setAddress(card.getAddress());
realm.commitTransaction();
}
see demo for Realm