Thursday, July 28, 2011

Use with XMLVM to convert android app to iphone app

Sample projects

Under the folder demo, various demo projects exist, to test XMLVM system. This section will describe only iPhone and Android based demo projects. These demo projects can be run either from the command line, or from and IDE, such as Eclipse and Netbeans. The source code of the Java-for-the-iPhone demos is located in directory demo/iphone/, whereas the source code of the Android-to-iPhone demos are located in directory demo/android/.
These are self contained projects, similar with the ones created by the XMLVM skeleton process (see below under How to start a new project under XMLVM).
http://xmlvm.org/slides/android2iphone-google-mtv.pdf
The example of cross-compilation include in the documentation consists on the following command:

xmlvm --in=/foo --target=android-on-iphone --iphone-app=TheApplication

where the directory /foo is searched recursively for *.class, *.exe, and *.xmlvm files, and then compiling using make to read the Makefile generated by xmlvm.
From http://www.xmlvm.org/documentation/manual.pdf (page 17):

Using Apple’s Xcode IDE

The Makefile generated by XMLVM can only compile and deploy the application on Apple’s emulator. Given the complexity of code signing that Apple requires for all native iPhone applications, you will need to use Xcode if a cross-compiled Java application is to be deployed on a device. The following steps explain the process of compiling an XMLVM-generated application using Xcode:
(list of instructions)
You will need XCode installed (there's a nice tutorial here: http://mobileorchard.com/how-to-make-iphone-apps-part-1-xcode-suite-and-objective-c-3/)


PS: Folositi Translate acolo unde aveti nevoie pana cand versiunea in limba romana va fi disponibila pe optlasuta.ro

2 comments:

  1. does '--target=android-on-iphone' work on a windows machine?

    ReplyDelete
  2. No it will work only on Mac with xcode installed

    ReplyDelete