Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getSupportFragmentManager on AccountAuthenticatorActivity

How can I pass the getSupportFragmentManager() to external library in AccountAuthenticatorActivity?.

I need to put a custom dialog with android-styled-dialogs: https://github.com/inmite/android-styled-dialogs

like image 477
eloirobe Avatar asked Feb 21 '26 09:02

eloirobe


1 Answers

  1. Take AccountAuthenticatorActivity and put it in your project.

  2. Instead of AccountAuthenticatorActivity extends Activity put AccountAuthenticatorActivity extends FragmentActivity.

  3. Extend your class with your new AccountAuthenticatorActivity and use getSupportFragmentManager().

like image 106
innich Avatar answered Feb 23 '26 00:02

innich



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!