Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: convert java EE to an androide app

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default convert java EE to an androide app

    Hello,

    I'm beginner to Java EE, I'm building a Java web app using frameworks as JSF, JPA and EJB and I want to convert the entire or just a part of the app to an android app. Any ideas?

    Best Regards


  2. #2
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: convert java EE to an androide app

    Quote Originally Posted by fati_2014 View Post
    I'm beginner to Java EE, I'm building a Java web app using frameworks as JSF, JPA and EJB and I want to convert the entire or just a part of the app to an android app. Any ideas?
    These kinds of "conversions" are, according to me, very pointless and fictional. A Java EE application is a totally different thing from a native android application. Apart the language that is Java for both types of application, the only thing that may be eventually "portable" are classes for "beans" and business logic that don't have any connection/relation to the user interface.

    But the overall architecture and user interface require a total rethinking.
    Andrea, www.andbin.netSCJP 5 (91%) – SCWCD 5 (94%)

    Useful links for Java beginnersMy new project Java Examples on Google Code

  3. #3
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: convert java EE to an androide app

    Going off of andbin's comment, when I create large-scale programs where I intend to have a web GUI and companion Android app, I make my framework extremely modular.
    I do this because Android does NOT fully implement the java JDK. There are many built-in java APIs which you will find are not accessible from Android (for example, the Swing framework just doesn't exist in the Android JDK).
    So I create modular layers of projects based on functionality that can (and should) be shared by both the web GUI and Android app.

    So I'll have something like this:
    1. SharedFramework Project
    2. WebFramework Project
    3. AndroidFramework Project

    The WebFramework and the AndroidFramework would both have SharedFramework as a dependency. It is important that SharedFramework does not import any APIs which cannot be accessed by the AndroidFramework.
    SharedFramework would have all the general business logic and functionality, while the WebFramework and the AndroidFramework have their more platform-dependent functionality.

    I've found this is the best way to "port", because it means that if there is a required change to the business logic which will effect both the web and Android platforms, I can make that change in one place: the SharedFramework, and then redistribute both at the same time. This also means that the business logic and basic functionality will not be different depending on the platform.
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  4. The Following 2 Users Say Thank You to aussiemcgr For This Useful Post:

    ChristopherLowe (May 25th, 2014), GregBrannon (January 10th, 2014)

  5. #4
    Junior Member
    Join Date
    Jun 2011
    Posts
    5
    My Mood
    Angelic
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: convert java EE to an androide app

    Why not to install your Java EE application on Android. There are Servlet containers ported to Android, for instance - Jetty.

  6. #5
    Junior Member
    Join Date
    Jul 2017
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default convert java EE to an androide app

    Hi,

    Was wondering if anyone knows of any web based issues management application.

    Thanks.

Similar Threads

  1. Like to convert old dos based app to run in WIN7
    By kpohlman in forum What's Wrong With My Code?
    Replies: 6
    Last Post: August 28th, 2013, 12:59 PM
  2. My app audio sounds different when running the app?
    By TP-Oreilly in forum Android Development
    Replies: 1
    Last Post: January 29th, 2012, 08:23 AM
  3. Convert Desktop app into Applet
    By Nesh108 in forum Java Theory & Questions
    Replies: 2
    Last Post: October 27th, 2011, 08:11 AM
  4. help on java app
    By teemone2001 in forum Paid Java Projects
    Replies: 1
    Last Post: September 2nd, 2011, 10:10 AM
  5. Java Web Start app exiting with access denie (java.lang.RuntimePermission
    By sonaljain in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 13th, 2011, 08:43 PM

Tags for this Thread