It's seem to be easily but I cannot find solution although i have checked at: How to update Android fragment from activity? How to change fragment's textView's text from activity
My problem is:
I have 4 class:
- MainActivity.java
- HistoryFragment.java
- ConversationDialog.java
- CallActivity.java
In MainActivity.java, It content 2 Fragment includes HistoryFragment and ContactFragment. From HistoryFragment, I call ConversationDialog to show dialog, input to dialog and press OK to open CallActivity.
Now, I want when I press back from CallActivity, I must update HistoryFragment with new data.
But after research, I cannot do it.
Please help me to do this.