I'm developing Android app which should use pagination on RecyclerView
. I use Executor
within Service
to make webrequests to API and then persist fetched data in DB. To notify about changes in DB and then apply new data in my adapter I suggest to use Otto event bus. Publisher/subscriber pattern is quite new for me, so I tried to find good tutorial or explanation how this should work but after two days of search I have only foggy idea about what should I implement and how actually Event bus works. Could someone give a good hint where should I start or link on tutorial or code sample? i know that this is a really newbie question but I don't see alternative for this moment.
The best guides that I found are: from Vogella and from Codepath. I hope it will help somebody. And good note based on my experience - Otto EventBus works synchronously , keep it in mind.