I used this article and I have a question.
In PageFragment (extends Fragment) I have some fields that load from DB (sqlite) and this fragment have a button that after click, update table in db. I want to reload fragment to show updated data (without swiping). I know that android keep states in memory, but I need to show updated fields whithout swiping.
I try to use POSITION_NONE, setOffscreenPageLimit, notifyDataSetChanged, detach, attach and etc..but none of them work and I confused about them.
a more proper way of doing that would be to put the initial update logic in separate method and call the method after updating the db.