refresh a fragment from its parent activity
问题 I have almost the exact same problem as this question here: Android, How to restart/refresh a fragment from FragmentActivty? I'm trying to call the a method of a ListFragment from the parent FragmentActivity . However, I'm using the template Swipe + Fixed Tabs generated by eclipse. I tried calling getSupportFragmentManager().findFragmentById(R.id.myfragment) but the return value is always null. I'm guessing this might be a problem because I did not define myfragment anywhere in my app. But I