I am using Action Bar on an Activity. For each Tab I am showing different layout. Since the layout is too heavy. So I am inflating each layout into a view. So on each Tab se
This can happen if you create an anonymous object inside a fragment that calls getActiviy(). If getActivity() is called in the anonymous object after the fragment is popped off the fragment stack, getActivity() will return null. At that point, the fragment is no longer associated with an activity.