Has anyone attempted to create an account authenticator service using
MonoDroid?
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;
public override void OnCreate()
{
//base.OnCreate();
if (_authenticator == null) _authenticator = new Authenticator(this);
}
public override IBinder OnBind(Intent intent)
{
if (_authenticator == null) _authenticator = new Authenticator(this);
return _authenticator.IBinder;
}
}
}
Appreciate any help I can get, been stuck on this for a bit.
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Sync-Adapter-and-Account-Authenticator-Services-tp4623034p4623034.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid