I know a similar question has been posted before but I think this is a different scenario.
I am having problem with the show function as I am unable to get getSupportFragmentManager(). I cannot extend FragmentActivity in the MainActivity as I have already extended MapActivity (it is a map based application).
A button on the main page brings up this alert dialog and I keep getting
The method show(FragmentManager, String) in the type DialogFragment is not
applicable for
the arguments (FragmentManager, String)
What work around can I get for this ? I followed the developer guide from google and they have extended FragmentActivity. I think I am missing something here.
It would be great if someone can help me out.
Update: I tried out with just a plain example and extended FragmentActivity and it worked. Apparently, FragmentActivity needs to be extended for this to work (unless if someone can give a workaround).
Is there a way to extend FragmentActivity and MapActivity ?
This bit:
looks to me like a clash between the “native” fragment support of Honeycomb and the “compatibility” fragment support in the support-v4 library. Check your imports, you’re probably passing a
android.support.v4.app.FragmentManagerinto a method that takes aandroid.app.FragmentManager, or vice versa.