Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to use mono in my cross platform project
    primarykey
    data
    text
    <p>I've been searching solutions for my enterprise apps, at least 3 platforms need to be supported, which are iOS, Android and Window Phone. After a whole day's search, I finally set my eyes on 2 promising cross platform solutions, one is monocross and the other phonegap. monocross seems to use c# and .net at all, is it possible to access native libraries and languages? I read somewhere it's compiled directly into binaries that can execute on target platforms. And about phonegap, it uses webviews on each platform to provide the capabilities of presenting user interfaces to final users. As it's implemented via interpreted language and high level apis, the performance may not meet our needs. Finally, we(my team) decide to give it a try with mono, the architecture is illustrated as bellow:</p> <p>+++++++++++++++++++++representation layer++++++++++++++++++++++++++<br> [monotouch,monodroid,silverlight]or [native gui calls] or [html5/js/css]<br> <br></p> <p>+++++++++++++representation controller/business logic layer+++++++++++++++<br> [ mono/c# ] <br> <br> ++++++++++++++++++++++++++++server side+++++++++++++++++++++++++++<br> [ the cloud ] </p> <p>I want to use mono/c# to write some common purpose business logic and data structures, and when it comes to some common platform features, like storage service, notifications, I'd like to wrap them up on each platform and expose uniform apis for c#(business logic layer) to use. As to the representation layer, we decide to choose from the 3 optional solutions listed above.</p> <p>To make this happening, first I have to figure out if it is possible to call native frameworks. So, my questions are:<br> 1, How does mono work, I mean, are the c# codes compiled into binaries that can be executed directly on iOS, Android and Windows Phone? <br> 2, Is there a mechanism to make native invocations? Like in cocos2d-x, I can call java methods via JNI, and in iOS, c++ can call oc directly. Can I call cocoa touch stuffs in mono with c#?<br> 3, Is it possible to manage all these stuffs in one single project, and how to build them?<br> 4, Are there any better solutions?<br></p> <p>Any suggestions will be appreciated, thanks for your patience!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload