On Sep 18, 2012, at 2:49 AM, javitxin <[email protected]> wrote:
> I am trying to implement an account provider with no success..I hope someone 
> could help me please..
> 
> First,  this is my service and AccountAuthenticator  class
> 
> namespace test
> {
>    public class AccountAuthenticatorService : Service

You're missing a [Service] custom attribute on AccountAuthenticatorService. The 
[Service] custom attribute is used to add a <service/> element to 
AndroidManifest.xml.

> Second, my AndroidManifest
> 
> <service android:name="test.AccountAuthenticatorService"
> android:exported="true" android:process=":auth">
>    <intent-filter>
>      <action android:name="android.accounts.AccountAuthenticator">
>      </action>
>    </intent-filter>
>    <meta-data android:name="android.accounts.AccountAuthenticator" 
> android:resource="@xml/authenticator">
>    </meta-data>
>  </service>

Given that <service/> element, you'll want:

        [Service]
        [IntentFilter (new[]{"android.accounts.AccountAuthenticator"})]
        [MetaData ("android.accounts.AccountAuthenticator", 
Resource="@xml/authenticator")]
        public class AccountAuthenticatorService : Service {...}

See also:

        
http://docs.xamarin.com/android/advanced_topics/working_with_androidmanifest.xml

 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to