2

Is it possible to create a shared backend logic using .NET and have the respective GUI front ends in MonoTouch and MonoDroid?

1 Answer 1

4

Yes, with some limitations due to the way MonoTouch works. Apple do not allow running of any background VM or service in order to JIT compile CLR applications, so all MonoTouch applications are AOT compiled, resulting in loss of dynamic abilities and reflection. The link will detail what is missing, and there's another link in there showing which libraries are available to MonoTouch apps.

MonoDroid does not suffer the same limitations because Android can run the full VM. So if you need to share a library between the two, you should build the library using the MonoTouch capabilities, and keep any dynamic related code in the MonoDroid projects only.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.