When user create new account in my app, I create new account in android account manager. So user can see his account in settings->accounts and synch...
So question: is it possible to remove my app from list when user click "add new account" in accounts and synch? User should not see my app in this list, but still can create account in my app.
PS. I don't want to open activity when clicked add account, I just want not display my app point in list.
I have in my manifest:
<service
android:name="myPackage.authenticator.AuthenticationService"
android:exported="false" >
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator" />
</service>
And my authenticator:
<?xml version="1.0" encoding="utf-8"?>
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
android:accountType="myType"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:smallIcon="@drawable/ic_launcher" />