title: Sharing code between iOS & Android projects
body: <p>I've been hired to develop a mobile framework for a webservice created by my employer. Ideally management would like to have some reusable components that can be shared across mobile platforms (initially iOS &amp; Android, probably Windows Phone 7 at some later point). </p>
  
  <p>I've been wondering how feasible this is. One of the requirements is a native interface, so we would use Cocoa Touch on iOS &amp; whatever (Java-based) toolset is used to create a native UI for Android. The application will interact with webservices, mainly the ones that we've been creating internally. The webservices have been developed in .NET. </p>
  
  <p>As far as reusable components go, I guess we could use some C++ code to make webservice calls and perhaps even more of the backend of an application, yet I wonder if this would be a good approach. Apple's Foundation Framework has some excellent capabilities build-in to access webservices, not to mention other open-source libraries, e.g. ASIHttpRequest, SBJSON, etc... I guess the same would be true for Android (though I have no real Android experience for now). Also, when looking at projects done by companies like Google, Twitter &amp; Facebook, each of these companies offers native libraries built for the major mobile OS platforms. If the big companies take this approach, it seems logical for us to follow suit. </p>
  
  <p>Perhaps we should focus more on a general architecture that we should offer across platforms instead of an implementation that can be shared. </p>
  
  <p>Would anyone advise us to make use of C/C++ to develop such a framework (shared library) for the mobile site of our webservices? If so, why?</p>