Fragment Getarguments() Returns Null
I have a Fragment which has a TabHost as the root layout as follows...
fm.beginTransaction()
.replace(placeholder, new EpgEventListFragment(), tabId)
.commit();
You're making a new Fragment
(that doesn't have arguments since it's been freshly instantiated).
Instead try
Fragmentfragment=newEpgEventListFragment();
fragment.setArguments(arguments);
fm.beginTransaction()
.replace(placeholder, fragment, tabId)
.commit();
Post a Comment for "Fragment Getarguments() Returns Null"