Inline.

On Jul 22, 2011, at 9:27 AM, BarryJohnston wrote:
> I'm attempting to create a SyncAdapter service which requires an
> AccountAuthenticator service but so far I have only been able to crash the
> Android OS.
> 
> Here is my code if it helps:
> 
> namespace MyApp.DataManagement
> {
>  [Service(Name = "myapp.datamanagement.AuthenticationService", Exported = 
> true)]
>  [IntentFilter(new[]{ "android.accounts.AccountAuthenticator" })]
>  [MetaData("android.accounts.AccountAuthenticator", Resource = 
> "@xml/authenticator")]
>  public class AuthenticationService : Service
>  {
>    private Authenticator _authenticator = null;

What is the full type of Authenticator? The only one I readily see is 
Java.Net.Authenticator, which doesn't have an IBinder property.

Is Authenticator a custom type? If so, are you also passing a custom IParcel 
implementation around? The IParcel interface cannot currently be implemented 
from managed code at this point in time, so that may be the issue you're seeing…

 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

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

Reply via email to