ASNETutorial
ASNETutorial copied to clipboard
Fragment vs Activity
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 ?
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