I have a fragment I am trying to add into a view.
FragmentManager fragMgr=getSupportFragmentManager(); feed_parser_activity content = (feed_parser_activity)f
I had the same problem it was caused because I tried to add fragments before adding the container layout to the activity.