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

    Join Date
    Dec 2008
    Location
    Michigan
    Posts
    8
    Rep Power
    0

    Question Java Application on Desktop to Android Device


    Hey all,

    I've been thinking about starting up a project (game) to run on the PC using Java. And since Android apps use Java, I was wondering what the process would be to transfer it from the desktop application to a game that would run on the Android phone.

    Thanks in advance!
  2. #2
  3. Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2004
    Location
    Switzerland
    Posts
    1,152
    Rep Power
    1902
    Android apps work quite a bit different from your ordinary java programs. You should probably be able to keep most of the game logic if you separated it well enough. The gui side however will require quite a bit of work as you'll have to adapt your program to support a variety of fixed screen sizes and a completely different set of gui controls.

    You also have to consider other special circumstances in the android environment like:
    * that you have no control over when you game is unloaded
    * you are quite restricted in the ways you can persist data for your game.

    All in all I expect you'll have to modify or even rewrite a significant portion of your application.
    - Hugh of Borg

    The first thing young borg are taught: Keep away from Microsoft software!
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2008
    Location
    Michigan
    Posts
    8
    Rep Power
    0
    Thanks a bunch, Hugh of Borg! I'll keep that stuff in mind. I'm kind of just starting with making games in java, so it should be quite an experience!

IMN logo majestic logo threadwatch logo seochat tools logo