On Oct 5, 2011, at 8:41 AM, dgoughnour wrote: > Any one have an example of a bound service in Mono for Android.
https://github.com/xamarin/monodroid-samples/blob/master/ApiDemo/App/LocalServiceActivities.cs#L64 > I am by no > means an expert at services but this looks pretty straightforward. My > BindService call always returns false and the OnBind method of the service > never gets called. Probably because you mis-implemented the IServiceConnection interface: > public class IMDSSConnection : IServiceConnection This should instead be: public class IMDSSConnection : Java.Lang.Object, IServiceConnection > public IntPtr Handle You should never implement IJavaObject.Handle yourself. Inherit it from Java.Lang.Object. - Jon _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
