• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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

 
Ranch Hand
Posts: 701
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic