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

Tomasz Cielecki tomasz at ostebaronen.dk
Mon Jan 9 18:42:34 EST 2012


I tried first with having the java file in the library project, which
fails. So that is exactly as you describe that the build system does
not include files located in library projects when marked as
AndroidJavaSource.

Would it be enough just to copy it into the main project?

Thanks, I will try it out tomorrow. Hopefully it will work nicely
along with the Javascript Interface. If so I might release a nice
library helping with Windows Azure authentication for Mono for Android
soon :)

On Mon, Jan 9, 2012 at 11:31 PM, Jonathan Pryor <jonp at xamarin.com> wrote:
> 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
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid



-- 
Med Venlig Hilsen / With Best Regards
Tomasz Cielecki
http://ostebaronen.dk


More information about the Monodroid mailing list