This is my app architecture so far:
I have a MainActivity which has a Fragment which has an Adapter:
Activity > Fragment > Adapter
I update my SQLiteDb from my Activity, I would like to know how I can call the method:
adapter.notifySetDataChange();
from there (or from my DatabaseHandler Class) DatabaseHandler is just a class that I can create anywhere and retrieve my SQLiteDB.
I guess this might be a suitable use case for the observer pattern, but I'm not quite sure how I can go about it.