Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert android project to java project

I've just finished developing an application for android. I want to have a desktop version that is based on java, too.

I have to convert all layouts to swing and what other conflicts I may face, god knows.

Is there a tool for converting android apps to jar standalone? What is the easiest way to do this?

like image 711
mehrmoudi Avatar asked Dec 05 '25 14:12

mehrmoudi


1 Answers

There is no tool to do this, as Android and Normal Java apps are very different.

The best you could do is move the non platform specific code into a library project, and reference it from both the Java and Android applications. So all code that doesn't use any import with android in it should be movable into the library, while all your swing/android specific code will go into the referencing projects.

like image 52
Raghav Sood Avatar answered Dec 08 '25 02:12

Raghav Sood



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!