I’m playing with account manager, and I managed to make it work creating an account for me.
But after some changes in the code it stopped working.
I’m calling AccountManager.addAccount and expecting my service to be binded. But no intent seems to be sent to me despite appropriate filters are configured:
<service
android:name=".service.MyService"
android:exported="true"
>
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator" />
<action android:name="android.content.SyncAdapter" />
</intent-filter>
<meta-data
android:name="android.accounts.AccountAuthenticator"
android:resource="@xml/authenticator"
/>
<meta-data
android:name="android.content.SyncAdapter"
android:resource="@xml/syncadapter"
/>
</service>
I also see nothing in logs.
Has anyone suggestions about the reason?
Actually rebooting emulator helped me…