[mono-android] no content provider found for permission revoke

Jonathan Pryor jonp at xamarin.com
Thu Jun 28 19:17:22 UTC 2012


On Jun 27, 2012, at 8:30 PM, Wally McClure <theevilprogrammer at hotmail.com> wrote:
> Here is what I ran into.  I had set my activity to implement LoaderManager.ILoaderCallbacks.  Once I did that, I told VS to implement the interface.  This gave me methods like:
>  
> public void OnLoadFinished 
> public void OnLoaderReset
>  
> While VS never blew up, I found this to not be accurate.  I found that:
> public void LoaderManager.ILoaderCallbacks.OnLoadFinished
> public void LoaderManager.ILoaderCallbacks.OnLoaderReset
> are what are actually needed.

This doesn't make sense to me. Why would an explicit interface implementation be required?

(Also, your code will not compile unless you remove the `public` keyword.)

>  Another issue that hung me for a little while is that OnLoadFinished takes a Loader  and a Java.Lang.Object to work properly.  In the method, I actually had to convert:
> (Android.database.ICurosr)data;

I don't understand this either. Did you forget some code in that message?

 - Jon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120628/fe353d0e/attachment.html>


More information about the Monodroid mailing list