开发者

Build Android app to run in JRE

I have seen questions and topics in google referencing running JRE apps in the android environment, but I am actually thinking about the reverse.

I understand Android runs on a different runtime engine than the standard JRE.

Is it possible t开发者_运维技巧o build an app to run on android, but also build and run the same app in the JRE on a desktop?

I assume there would be restrictions on API usage, I was just thinking about the possibility to distribute a simple app that could be useful on both the device and the desktop.


I think the bigger problem here is going to be accessing the Android API and environment on your desktop. Do you have a plan for that?

If you have the Android environment running on your desktop then there shouldn't be any problem running your app there.

This answer offers an alternative suggestion.

Short answer: your desktop and Android app can share a large portion of code, but you aren't going to be able to run Android-specific code on the desktop.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜