To add a .java file to your project, add it to your project (right-click your
Project > Add > Add Files..., select files, OK), then select the .java file in
the Project panel and set its build action to AndroidJavaSource.
Once you've done that, you can use JNIEnv to instantiate the Java class and
invoke methods on it. See the SanityTests sample for an example:
https://github.com/xamarin/monodroid-samples/blob/master/SanityTests/Adder.java
https://github.com/xamarin/monodroid-samples/blob/master/SanityTests/Hello.cs#L514
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid