On Sep 8, 2011, at 10:39 AM, Elan Hasson wrote: > Does the build action AndroidJavaSource work for JAR files also?
Yes. AndroidJavaSource is for both .java files and for .jar files. It can even be for directories (and then it'll recursively grab all the .java files; funny it doesn't recursively look for .jar files as well...). (It's not necessarily recommended to use the directory approach, as then the MSBuild dependency tracking won't work; i.e. when you update a .java file, MSBuild won't detect that the .java has changed unless the file itself is part of the project.) > Also, I've had some difficulty locating the documentation for > AndroidJavaSource, do you know where it is? http://android.xamarin.com/Documentation/Build_Process#Java_Interop_Support > I'm looking for more details on how it is exposed to the C# code.. I don't understand this question. All AndroidJavaSource does is compile the specified .java files into .class files (along with the generated Android Callable Wrappers), then compile all the .class & .jar files into the classes.dex which is included in the .apk. > Is it exposed via JNI calls from C# ? Anything within your app's classes.dex, the platform android.jar, and any libraries your app references (via <uses-libray/>[0]) are accessible via JNI. - Jon [0] http://developer.android.com/guide/topics/manifest/uses-library-element.html _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid