tags:

views:

143

answers:

5

Dear all,

I'm new to mobile phones development, but I wonder whether there is any way to develop native apps (HTML-based apps is another story) that would run both on Android and iPhone? I know that there exist applications available for both OSs, so I wonder how are they ported/developed for both targets?

A: 

test: obile phones development, but I wonder whether there is any way to develop native apps (HTML-based apps is another story) that

WesDec
this isnt an answer
PaulStack
+3  A: 

You can simply have two different projects, with same design and graphics, or, you can do it with some frameworks like PhoneGap or Rhomobile.

The best way is to have two different versions of the code, so you can take advantage from the platform that you are using.

Junior B.
I wouldn't recommend Rhomobile, the Rhodes framework is not mature enough in my opinion. The resulting interfaces are pretty clunky and very non-native feeling. Check out the apps they list under their customers before making your decision, and note that Wikipedia no longer uses Rhodes.
Flash84x
Of course the best way is have a different native version of the app for every platform.
Junior B.
Ok, but that really basically means writing the same application twice. No way to re-use code (at least to some extent), while still keeping the advantages of native apps? Is it a common practice to write apps from scratch (only sharing resources)?
akoprowski
Yes you can using cross-platform framworks, but the result is a not the best you can have as if you do it as separate projects. To be honest, I think that big dev teams use only shared resources and do it as separates projects. But if you want to use a framework to spend less time in it, you can of course, but be careful in you choice. Personally I've tried Rhodes, it looked really good at the start, but after some weeks, I'd understood that split the two projects was the better way, but maybe it was because the project was really complex.
Junior B.
Junior B: thanks! Very useful answer/comments, appreciated.
akoprowski
+1  A: 

http://www.appcelerator.com/

Alex Volovoy
A: 

http://www.xmlvm.org/android/

Nature
A: 

You can share a significant amount of Non-UI logic and code libraries by taking advantage of MonoTouch and MonoDroid. They are native frameworks which provide C# bindings around iPhone's and Androids native APIs. They have the added advantage of being able to develop in C# which IMHO is nicer than Obj-C and Java.

mythz