title: Good Way to Create a Cross-Platform Library for an Android and iOS app
body: <p>I'm developing an app for both Android and iOS, and I'm considering writing the UI with each platform's native tools (the alternative in this case would be to use Flex). However, I would like to at least contain the core functionality in a cross-platform library so I don't have to rewrite it for each OS.</p>
  
  <p>The library will need to process strings / characters in languages other than English, so I'll need Unicode support or something similar, but that's about it, because it won't be doing anything really complicated.</p>
  
  <p>Is there a good way to do this?</p>
  
  <p>Thank you very much.</p>
  
  <p>P.S. I'm also curious how most large projects do this. What is the most accepted way to do this; do they completely rewrite the app for each platform, or what are the most popular solutions?</p>