Android : How to update Fragment TextView from FragmentActivity when finish a AsyncTask

on Tuesday, September 2, 2014


I have an activity extends from FragmentActivity, and I have four TABS of Fragments, I have AsyncTask in main FragmentActivityto get load data from a server, so, I want to update each Fragment data when complete the AsyncTask function on parent FragmentActivity, since I'm using android.support.v4.view.ViewPager all the Fragment's UI loading when starts the Activity with blank data, so, I want to update the each fragment fields (TextView) with the data getting from AsyncTask, How I can update. Appreciate your help.


0 comments:

Post a Comment