Is there a way, apart from using HTML and JavaScript on a web control, to have an (almost) single codebase for an application that should run on iOS and Android?
The big issue is of course that they use a different language (Java for Android, Objective-C for iOS) for application development. It would be nice to have some sort of meta-language that will be translated in Java and in Objective-C.
What about Flash? Adobe wasn't supposed to release a tool to create flash-based apps in iOS?
Update: based on current answers, the best cross platform development tool for iOS and Android seems to be Titanium appcelerator . I suspect that this topic will evolve overtime, so feel free to contribute with new information and comments. Thank you!
Source: Tips4all
You could use Titanium appcelerator. Titanium allows you to write apps in an abstract way with java script and then compile it to a mix of java script and native code. This gives you a native look on Iphone and Android with only a single java script code base.
ReplyDeleteTitanium states that their approach complies with the terms of service of apple and their are some titanium apps in the android market and itunes store.
You can try making your libraries with native code (C or C++) and use them in both platoforms. the android ndk and iphone.
ReplyDeleteApple are against Flash on iPhone (for performance reasons they say) and there's been a lot of discussion about this.
ReplyDeleteThe iPhone OS 4 license agreement states that "applications must be originally written in Objective-C, C, C++ or JavaScript" and 'translating' is prohibited, which affects Adobe's tool, as well as the Mono project.
Depending on your task at hand, you may use other, specialized solutions. For instance, if your code is heavily networked (e.g. you're building a social network or a music sharing app), requires WiFi, location, proximity, ad-hoc, connectivity to Android, iPhone, BlackBerry, Windows Mobile, or Symbian, app discovery, etc., then a solution like Mobile Community Framework (www.uvamobiltec.com) may work for you. You'd still need to write some code, but the most complex parts of the job would be done for you by the framework code, which is native to every platform.
ReplyDeleteYou can create Html5 apps..Both android and iOS supports html5
ReplyDeletehttp://sixrevisions.com/web-development/html5-iphone-app/ and for Android http://grammerjack.blogspot.com/2010/05/writing-android-application-in.html