Sign in with Twitter/ Share via Twitter in Android navigates to Twitter home screen instead of login screen[inconsistent]




We have an application which supports normal login using a valid email id as well as using Twitter. We are supporting post tweets using our application.
Before posting tweet I m checking for Twitter session. If there is no active session, I m navigating user to Twitter login screen by calling TwitterAuthClient.authorize() method. After authorizing the user able to see the Tweet composer box where user can compose and post tweet. The flow is working properly most of the times. But sometimes the Twitter SDK is opening the Twitter home screen
instead of screen.
Due to this the callback is not coming back to my application after sign in. So, I m not able to Tweet.

NOTE: Twitter app is installed in my device and there is not active Twitter session present.