Skip to content Skip to sidebar Skip to footer

Facebook Sharing Using Fragments

I am using Facebbok sharing in my app,i have one listview and in my list item i have one Button,on click of the Button i am trying to share my stuffs,but the issue is my code works

Solution 1:

Override this method on your main activity

@OverrideprotectedvoidonActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    TestFragdemoFragment= (TestFrag) getSupportFragmentManager().findFragmentByTag("test");
    demoFragment.onActivityResult(requestCode, resultCode, data);
}

after your fragment activity result call

Post a Comment for "Facebook Sharing Using Fragments"