Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android facebook-android-sdk:4.0.0, how can I remove the login progress bar?

While using the loginWithReadPermissions method of the latest Facebook SDK for Android, a large progress bar is displayed while Facebook waits to either open the app or webview. Is there anyway to stop this progress bar from showing? It is not aesthetically pleasing.

I am using:

LoginManager.getInstance().logInWithReadPermissions(
    this,
    Arrays.asList(getResources().getString(R.string.app_facebook_scope_email))
);
like image 643
S-K' Avatar asked May 11 '15 23:05

S-K'


1 Answers

Change the com.facebook.FacebookActivity entry in your manifest so that it contains:

android:theme="@android:style/Theme.NoDisplay"

instead of

android:theme="@android:style/Theme.Translucent.NoTitleBar"

This worked for me.

like image 102
Edu Barbas Avatar answered Nov 08 '22 15:11

Edu Barbas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!