For my project, I am using ParseLoginUI with a dispatcher as shown here: https://github.com/ParsePlatform/ParseUI-Android/tree/master/ParseLoginSampleWithDispatchActivity
I found the solution. That dummy activity which starts unnecessarily is belong to Facebook. Which in our AndroidManifest.xml Facebook's LoginActivity looks like this:
<activity android:name="com.facebook.LoginActivity">
Add NoDisplay as Theme to it, so it doesn't show up on screen:
<activity android:name="com.facebook.LoginActivity"
android:theme="@android:style/Theme.NoDisplay">
With update of new facebook sdk it is now works like this
<activity android:name="com.facebook.FacebookActivity"
android:theme="@android:style/Theme.NoDisplay"
tools:replace="android:theme"
/>