ユーザーがアプリで新しいアカウントを作成すると、Android アカウント マネージャーで新しいアカウントを作成します。そのため、ユーザーは設定 - >アカウントと同期で自分のアカウントを確認できます...
質問: ユーザーがアカウントで [新しいアカウントを追加] をクリックして同期したときに、アプリをリストから削除することは可能ですか? ユーザーはこのリストに自分のアプリを表示する必要はありませんが、アプリでアカウントを作成することはできます。
PS。アカウントの追加をクリックしたときにアクティビティを開きたくありません。アプリのポイントをリストに表示したくないだけです。
私はマニフェストに持っています:
<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>
そして私のオーセンティケーター:
<?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" />