ASNETutorial icon indicating copy to clipboard operation
ASNETutorial copied to clipboard

Fragment vs Activity

Open bmutinda opened this issue 10 years ago • 1 comments

There is something I don't get it in here. Why is it that everything for the lib is created from a fragment. Does is mean that if my login UI was in an activity, I will have to create a fragment so that I can create an instance of *FacebookSocialNetwork * because it only receives a Fragment and a list of permissions required. It seems the old version - which has a certain bug that was fixed with 0.3.3 - had this

FacebookSocialNetwork fbNetwork = new FacebookSocialNetwork(socialNetworkManager, activity, fbScope);
``` but now all this is not there as of version 0.3.3.

Does anyone know any implementation that does not have a UI inflated inside a fragment? i.e. in an Activity ?

bmutinda avatar Jan 29 '16 09:01 bmutinda

facing the same problem TwitterSocialNetwork twNetwork = new TwitterSocialNetwork(this, TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET, TWITTER_CALLBACK_URL); TwitterSocialNetwork requried fragment to pass in constructor

ashishCDN0135 avatar Sep 16 '16 11:09 ashishCDN0135