港口Android应用程序到桌面? [英] Port Android App to Desktop?

查看:129
本文介绍了港口Android应用程序到桌面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,如果这将是可能的(法律)端口一个Android应用程序桌面?
我(甚至像布局手机)创建的Andr​​oid游戏,将PC上很好地工作过,并在想,也许我可以嵌入Android仿真器与安装程序或将这一过程有点辛苦新手的Java codeR?

I'm just wondering if it would be possible (and legal) to port an Android app to desktop? I'm creating an android game that would work well on PC too (even with the cellphone like layout) and was thinking that maybe I could 'embed' an android emulator with an installer or would that process be a bit hard for a novice Java coder?

推荐答案

如果你把应用程序逻辑从Android电子contructs(activites,意图等)单独应该很容易创建的Java Swing UI的桌面应用程序,因此具有普通codeBase的。我写的Java code是平台无关的,关于J2ME /黑莓/ Android和有位的设计是不是在所有的作品很难这样做。

If you keep the application logic separate from Android contructs (activites, intents etc) it should be easy to create Java Swing UI for the desktop app and thus have a common codebase. I have written Java code that is platform agnostic that works on J2ME/BlackBerry/Android and with a bit of design it is not at all hard to do so.

这篇关于港口Android应用程序到桌面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆