Murat Ayan Murat Ayan - 1 month ago 6x
Android Question

While ParseLoginUI loading spinner is working activity is visible at background

For my project, I am using ParseLoginUI with a dispatcher as shown here:

However, when I click "Login with Facebook", Parse spinner starts spinning, also my activity which I should go "after" this step is also getting visible (it looks really ugly) and then it directs me to facebook login widget and to the activity.

It should look like this:
enter image description here

Yet, I also see this step:

enter image description here

Which is pretty disgusting. How can I stick with only first animation? I guess Activity is starting prematurely.


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"