I have a fragment I am trying to add into a view.
FragmentManager fragMgr=getSupportFragmentManager(); feed_parser_activity content = (feed_parser_activity)f
My mistake was on the FragamentTransaction.
FragamentTransaction
I was doing this t.replace(R.layout.mylayout); instead of t.replace(R.id.mylayout);
t.replace(R.layout.mylayout);
t.replace(R.id.mylayout);
The difference is that one is the layout and the other is a reference to the layout(id)
layout(id)