Twitter Kit android: redirection to login screen

android
login

#1

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?


#2

Docs for using “Log in with Twitter” can be found here. https://docs.fabric.io/android/twitter/log-in-with-twitter.html

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


#3

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?


#4