I have a problem getting the SocialNetworkManager in android.app.Fragment in a application targeting API version >= 14.
This line specifically, when MainFragment.java inherits the standard android fragment
getFragmentManager().beginTransaction().add(mSocialNetworkManager, MAinActivity.SOCIAL_NETWORK_TAG).commit();
It throws a compile time error:
cannot be cast to android.app.Fragment
Do you have an idea how to make this work, or alternative class that doesn't inherit from the android.support.v4.app.Fragment so that can be used from the standard inbuilt fragments?