Twitter Kit android: redirection to login screen



I want to use the twitter share functionality from my android application. Using Fabric, I want to redirect the user to the twitter login screen (if he is not logged in) of the twitter application if it’s installed or to the browser.
Can anyone help me please or guide me on what have I to do?


Docs for using “Log in with Twitter” can be found here.

One could call TwitterCore.getInstance().getSessionManager().getActiveSession() to see if the user is already logged-in.


This is what I’m trying to do but I’m always getting null for the session even if I’m logged in the Twitter application. Can you help me please?