title: Porting an iOS Objective-c app to Android Java
body: <p>My app is a medical data viewer, where patients wear a sensor that transmits data by Bluetooth low energy. The app was developed in Objective C, targeting the iOS platform. Now the app needs to be ported to the Android platform.</p>
  <p>The current design and implementation for iOS is as follows:</p>
  <ul>
  <li>communication - Objective C, specific to the Core Bluetooth API</li>
  <li>data/persistence - Objective C, using FMDatabase as the interface to SQLite</li>
  <li>algorithms/logic - Objective C</li>
  <li>ui - JavaScript/HTML5 based on Phonegap</li>
  </ul>
  <p>Since the communication is specific to the Core Bluetooth API, it will have to be re-written for Android. The ui layer should be readily portable without much change as it fully depndendt on Phonegap. Yet for the persistence and logic layers I am looking for a way to either convert them automatically to Android, or re-write them in such a way that they are reusable for both platforms.</p>
  <p>What is the best software engineering approach to implement a cross-platform app like this?</p>