Using RoboFragment with a FragmentManager

I am trying to use RoboGuice and fragments without any luck. I have a fragment that extends RoboFragment and an activity that extends RoboActivity , but it seems that in RoboActivity method getFragmentManager incompatible with RoboFragment .

It looks like RoboFragment extends android.support.v4.app.Fragmentment , but getFragmentManager requires android.app.Fragment .

How should this work?

+6
source share
1 answer

As always, I worked on my problem for 10 minutes after posting (sorry)!

I needed my work on extending RoboFragmentActivity, which then exposed the getSupportFragmentManager method - which returns the android.support.v4.app.FragmentManager file, which is obviously compatible with android.support.v4.app.Fragment

Matt

+9
source

All Articles