Account Manager: Android app does not appear under the Accounts tab of the settings,

I am trying to use the Account Section application in the settings. Thus, when the user clicks the "Add Account" button, my application name is displayed. Full code can be found here. I created an authentication service. This is what my manifest looks like

<service android:name=".AuthenticatorService"> <intent-filter> <action android:name="android.accounts.AccountAuthenticator" /> </intent-filter> <meta-data android:name="android.accounts.AccountAuthenticator" android:resource="@xml/authenticator" /> </service> 

I also created "authenticator.xml"

  <?xml version="1.0" encoding="utf-8"?> <account-authenticator xmlns:android="http://schemas.android.com/apk/res/android" android:accountType="com.udinic.auth_example" android:icon="@drawable/ic_launcher" android:smallIcon="@drawable/ic_launcher" android:label="testing" android:accountPreferences="@xml/prefs"/> 

But I do not see my application under the accounts. I follow this tutorial but it does not work. Can you tell me what I'm doing wrong?

+6
source share
1 answer

Use the resource string instead of the literal text in the label.

"authenticator.xml"

 android:label="@string/some_label" 
0
source

All Articles