I have a Fragment with a ListView on it. This ListView is filled with an adapter.
I start a DialogFragment an there I can type in the data for a now row on the ListView.
Now I want to refresh the Fragment under the Dialog when the Dialog is closed.
How can I refresh the ListView? I can't call the notifyDataSetChanged() from outside the fragment.
I read something about a callback loader, but I populate the ListView with an array. As far as I understand the callback Loader i have to use a Cursor for that.
I also tried to call a function of the activity but then i couldn't call the notifyDataSetChanged() too. To make the Adapter static didn't work.
I Hope someone understands my Problem and can halp to fix it.