On Dec 9, 2011, at 5:25 PM, klimaye wrote:
> I am looking at
> 
> http://code.google.com/p/android-section-list/
> 
> as a sectioned listview implementation.
> 
> How would one reference the generated apk (output of library project) with 
> monodroid?
> 
> Would I use JNI ?

For a library of that size, porting to C# would likely be easier. :-)

For larger libraries, yes, you can include them into your app and use JNI to 
interact with them. You can look at the SanityTests sample:

        https://github.com/xamarin/monodroid-samples/tree/master/SanityTests

Specifically the TestJniInvocation() test:

        
https://github.com/xamarin/monodroid-samples/blob/master/SanityTests/Hello.cs#L513

and the <AndroidJavaSource/> within the project file:

        
https://github.com/xamarin/monodroid-samples/blob/master/SanityTests/SanityTests.csproj#L62

(There is also logic to build the .jar via MSBuild, which is ignorable if you 
don't need to build Java source...)

 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to