9

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.

6
  • 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...) Commented 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. Commented Nov 24, 2011 at 9:37
  • @GETah, can you please guide me the procedure to do this. Commented 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... Commented Nov 24, 2011 at 9:38
  • You can run the app in Desktop using Android Emulator. No code change required. Commented Nov 24, 2011 at 10:06

1 Answer 1

3

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...)

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.