Is it possible to develop an android application aimed at mobile devices and also use the same code to execute on windows, linux or osx as a standalone java desktop application without using an emulator? I.e. to have the look and feel of a conventional java application running standalone?
Is it possible to develop an android application aimed at mobile devices and also
Share
Android uses a custom UI framework, which doesn’t run on the desktop. So, the short answer is no.
Longer answer:
Despite the above, you’ll still be able to re-use some non-UI code between the two. Any code that doesn’t call android.* will probably port over.
You also could write an abstraction layer that hides the details of the UI toolkit.
Finally, there are also some third-party application development frameworks which work across multiple platforms. The one that springs immediately to mind is Appcelerator’s Titanium, but there’s others out there as well. You might have some luck with these.