I have an android activity which has a tabbed navigation structure . I show a list on the first tab with option to add items to their favorite which is shown in second tab. The favorite entries are maintained in sqlite db.
Can someone suggest the right way to structure the code so that if an item is marked favorite in First Fragment and entry is saved in database . How to get the second fragment reflect the changes.
P.S:The second fragment does a select all from favorties table and has a list.
Aucun commentaire:
Enregistrer un commentaire