[mono-android] WebView Javascript Interface and exposing methods through JNI

Jonathan Pryor jonp at xamarin.com
Mon Jan 9 17:31:47 EST 2012


On Jan 9, 2012, at 4:57 AM, Tomasz Cielecki wrote:
> Seems to me that it cannot find the java file I created even though I have set the build action to AndroidJavaSource, can it have anything to do with that I am doing this in a Mono for Android Class Library?

Is the AndroidJavaSource item in your main project or in the library project?

Your ManagedAccessControlJavascriptNotify.cs should be able to exist in the library project, but at this time the Java AccessControlJavascriptNotify.java file will need to be in your main project, as (just like Resources) our build system doesn't yet include files located in library projects.

Thanks,
 - Jon



More information about the Monodroid mailing list