- iPhone Nanite
- 1 Posts
How to develop an application to work on both android and iphone?
Hi my name is lavanya,
I want to develop an application and it should work on both Android and iPhone mobile platforms. I have two queries:
1) Do I need to develop the application individually using Android SDK and iPhone SDKs?
2) Is there any common platform (like Flash, Flux with Action Script etc.) to develop the application? So, I can install on both Android and iPhone mobile platforms?
Thanks in advance.
- 08-09-2011, 07:38 AM #2
- 08-14-2011, 10:23 PM #3
- 08-29-2011, 05:09 AM #4
- 09-04-2011, 01:32 PM #5iPhone Newbie
- 11 Posts
One way to approach this would be HTML5. There are frameworks like PhoneGap which allow you to package your HTML5 application for up to 6 platforms (not just Android and iOS), and HTML5 becomes stronger every day.
However, we have investigated HTML5 as a potential direction and found that it's still in very early stage, it will work great for simple apps, but if you want something complex, need to go native.
- 09-11-2011, 10:15 AM #6
Different APIs == Different Duplicated Implementation.
I guess you can make core functionalities using low level languages and call these procedures from a higher one, but the overall App must be implemented twice because of the different APIs!.
- 09-26-2011, 05:25 AM #7
- 09-26-2011, 03:26 PM #8
- 09-27-2011, 01:37 AM #9
- 10-03-2011, 08:30 AM #10
- 10-03-2011, 08:33 AM #11
Having done this I highly recommend coding each application for the specific platform. We used a cross platform tool I initially and then rewrote both apps from scratch because we felt the compromises were too great to try to stay with the cross platform tools.
- 10-08-2011, 08:50 PM #12iPhone Newbie
- 12 Posts
I've been doing this by writing almost everything in C++. You can write C inside your Objective-C code as much as you want, and if you compile for Objective-C++ you can do C++ anywhere in your Xcode project as well. Android has an NDK (Native Development Kit) allowing you link in C++ code to your Java project as well.
So basically, I've written a lot of C++ libraries that do most of the work, with some appropriate #ifdefs when needed.. For iOS I compile the library as a static library that I link into an Objective-C++ shell of a program. For Android, I compile the same code as a dynamically linked library that I is linked into a Java shell of a program at runtime.
Mostly OpenGL based stuff, as there is some major common ground there.
- 10-20-2011, 01:35 PM #13
- 10-25-2011, 09:43 PM #14
- 11-21-2011, 08:42 AM #15