#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    231
    Rep Power
    16

    Java for ipad applications


    Hi,

    I wonder we can use Java to develop ipad/iphone/android applications on PC? What is the most language used for those operation systems?

    Thanks!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2014
    Location
    India
    Posts
    200
    Rep Power
    4
    Originally Posted by soap
    What is the most language used for those operation systems?

    Thanks!
    The primary language for ios and OS X platforms remains Objective-C and as of now it is the main language for development on Apple's platforms. Since ipad/iphone uses ios you would have to use objective-c for the development. As for developing from a PC you'll need to get Xcode from Apple, unfortunately it runs only on OS X and so are the other development tools from Apple. Although you can work-around this by using a third-party development tool but for the deployment of the application, iirc, you will need a Mac.

    As for Android, Google uses its own variant of Java (unportable to other platforms) with a different standard-library api.

    Originally Posted by soap
    Hi,

    I wonder we can use Java to develop ipad/iphone/android applications on PC?
    There are many ways to write cross-platform application which run on both platforms such as using the web-browser as the universal platform since almost every OS has a web-browser but this will require you to use multiple web technologies such as HTML, JavaScript, CSS, etc and this will certainly not involve Java.

    If you want to write pure-Java applications which run the same on both platforms then you might consider using GWT (https://en.wikipedia.org/wiki/Google_Web_Toolkit). GWT compiles Java source code to JavaScript enabling the application to run on any platform which supports a web-browser. If you're looking for a more native way to create and deploy Java mobile-applications you should take a look at PhoneGap which allows native packaging for each OS allowing you to access the phone-hardware like the camera, GPS, etc.

    I'd suggest you read "Building Mobile Applications With Java by Joshua Marinacci". It contains a gentle introduction to both GWT and PhoneGap while also helping getting started by building a real-application, adapting it to mobile ui using CSS, packaging it natively for webOS, iOS and Android.

    Comments on this post

    • Will-O-The-Wisp agrees : Thank you!
    Last edited by hexman; June 28th, 2016 at 04:04 AM. Reason: structural improvement
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    231
    Rep Power
    16
    Thanks a lot!
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2014
    Location
    India
    Posts
    200
    Rep Power
    4
    Originally Posted by soap
    Thanks a lot!
    You're welcome; glad it helped.

IMN logo majestic logo threadwatch logo seochat tools logo