my dog learned polymorphism*
The moose likes Android and the fly likes How to make an Android app in a way its code can be portable to iOS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to make an Android app in a way its code can be portable to iOS?" Watch "How to make an Android app in a way its code can be portable to iOS?" New topic
Author

How to make an Android app in a way its code can be portable to iOS?

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689


SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4164
    
  21

There are a few things you could try:

1) Don't use native android code/java, instead use HTML5/CSS/JavaScript (JQuery and the like) to build your application. There are frameworks for this and they let you run apps on most any platform.
2) Make your application a true web-application. Instead of an app on the device like the above, the app runs on a web server and the app is just a view of it.
3) Design your application so you wrap android and iOS APIs in your own layer. Code your application to use your layer. You can't re-use the actual code because it is a different language but you should be able to reuse the logic. Of course the GUI would also have to be made separately for each os.

All of them have their drawbacks, as far as how much work, availability of APIs and access to the native system.


Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make an Android app in a way its code can be portable to iOS?