Skip to content

Problem when using SocialNetworkManager in a android.app.Fragment #1

@djandreski

Description

@djandreski

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions