I want to create a library for GooglePlus. For this I created multiple classes like login, posting, fetching user profile.
Do I have to implement onConnected, onDisconnected, onConnectionFailed ? Do I have to call plusClient.connect() in every class?
Currently If I connect() in first(login) class and then tries to post on use's account from different activity then it's giving a problem. I have to connect() it again even if i have done this in previous activity.
Is there a solution for this that I can use same plusClient object in multiple activities?
Thanks in advance.