1. lavanya.hyma's Avatar
    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.

    lavanya.
    08-06-2011 03:36 AM
  2. tengence's Avatar
    Though I have not done this, it is possible to develop apps for the andriod platform and the iOS in java. I use Objective C in Xcode for iOS, but I havent tried doing them in java. I hope that helps
    08-09-2011 08:38 AM
  3. HRTapps's Avatar
    There's no way to execute java on iOS, so you can't use that language to develop iOS apps. I haven't yet found a good "native" solution for both platforms other than writing two sets of code.
    08-14-2011 11:23 PM
  4. amitginni's Avatar
    You will pretty much have to do it twice for different platforms. If you were making a game or using a game engine, you could probably get away with it when using Unity3D.
    08-29-2011 06:09 AM
  5. DanSilov's Avatar
    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-04-2011 02:32 PM
  6. Apple Developer's Avatar
    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-11-2011 11:15 AM
  7. Patrice Khal's Avatar
    Like DanSilov said, one way to do that is to use HTML5 framework like Phonegap who's free and great.
    Of course, it's a bit limitated and the apps will need some adjustments (like sizes ratios differences) for each model.
    09-26-2011 06:25 AM
  8. LittleBitStudio's Avatar
    You can develop for Android and Ios using Corona or Unity.
    09-26-2011 04:26 PM
  9. Jellotime91's Avatar
    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.
    Yes, this!!!

    But, overall for your users it will be a better experience if you develop 2 different apps with their native SDKs.

    Develop the iOS app first, and then do the Android app. iOS is the cash cow so it's better to do iOS first and gauge response to the app.
    09-27-2011 02:37 AM
  10. DAGASU's Avatar
    Look for a cross-platform tool, there are many of them. You will only need to compile it and maybe minor conditional changes in code for each platform supported by the tool.
    10-03-2011 09:30 AM
  11. Timhewitt's Avatar
    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.

    -t
    10-03-2011 09:33 AM
  12. cosborn's Avatar
    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-08-2011 09:50 PM
  13. zmey's Avatar
    If you choose to go with two different versions and using cocos2d framework, there's cocos2d port for Android now. You still have to rewrite everything from Objective C to C++ for Android but the code will look similar.
    DoodleDudeDan likes this.
    10-20-2011 02:35 PM
  14. joteykj's Avatar
    You may also check Flash Builder 4.5, it supports development for both Android and iPhone apps.
    10-25-2011 10:43 PM
  15. iiiisoft's Avatar
    You could use HTML5
    11-21-2011 09:42 AM
LINK TO POST COPIED TO CLIPBOARD