I have two tabs with fragments created in my activity, the data of the second tab depends on the first tab data.
Both the tabs are containing list items, when I delete an item from first tab's list, it gets deleted but the second tab still shows the data. I need to go back from activity and load again to see the updated data in second tab.
Is there any way that I can refresh the second tab content whenever I delete/update list item of first tab?
Note: I have tried -
detach()
attach()
and
runQueryOnBackgroundThread()
notifyDataSetChanged()
In onResume
nothing seems to be working. Any help would help a lot