I developed an application in Android. Now i want develop same application for Desktop using Java. Is there any tools or procedure to convert existing Android app code to Java Desktop app. Thanks in advance.
-
If the application is well designed and GUI well separated from domain and other layers then this boils down to only converting android UI elements into java desktop components (SWING...)GETah– GETah2011-11-24 09:35:03 +00:00Commented Nov 24, 2011 at 9:35
-
@GETah, since VenkaReddy is asking this question, I suspect that he didn't. If this is the case, he'll have to refactor his application first, to have a clean separation.stivlo– stivlo2011-11-24 09:37:07 +00:00Commented Nov 24, 2011 at 9:37
-
@GETah, can you please guide me the procedure to do this.VenkaReddy– VenkaReddy2011-11-24 09:37:54 +00:00Commented Nov 24, 2011 at 9:37
-
i don't think that it is so easy... Activities aren't really meant to work well on desktop system policy...STT LCU– STT LCU2011-11-24 09:38:04 +00:00Commented Nov 24, 2011 at 9:38
-
You can run the app in Desktop using Android Emulator. No code change required.Sarwar Erfan– Sarwar Erfan2011-11-24 10:06:10 +00:00Commented Nov 24, 2011 at 10:06
1 Answer
Android application will definitely not work on desktop computers out of the box, unless using an emulator. However, as specified by Android documentation:
Android platform using the Java programming language
Android uses Java. That means any java code that is well encapsulated in a domain layer independent from the android UI can be reused as part of a java desktop application. If the application is well designed and GUI well separated from domain and other layers, this will boil down to only converting android UI elements (eventually along with a presentation layer) into java desktop components (SWING...)
