跨移动平台共享代码

发布于 2024-09-27 04:13:49 字数 274 浏览 1 评论 0原文

是否可以在多个移动平台(Android、BlackBerry、Symbian 等)之间共享 Java 应用程序(Android 是 Java SE(几乎兼容)、BlackBerry 是 JavaME 等)?

提前致谢。

编辑:

我不是在谈论 GUI,这是不可能的。

我还需要注意另一件事?即向量而不是列表。

线程?

内存管理?

存储管理?

上面提到的项目是我特别感兴趣的。

感谢大家的回答。

Is it possible to share a Java application across several mobile platforms (Android, BlackBerry, Symbian, etc) regarding of Android is a Java SE (almost compliant), BlackBerry is JavaME, etc?

Thanks in advance.

EDIT:

I'm not talking about GUI which it won't be possible.

There is another things which do I have to take care ?, i.e Vector instead of List.

Threads?

Memory management?

Storage management?

Items referred above is where my interest particularly is focused on.

Thanks all for your answers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

碍人泪离人颜 2024-10-04 04:13:49

只要代码与 JME(或多或少 Java SE 1.3)兼容并且仅使用兼容的库,您就可以保留代码。

您无法真正保留 GUI,几乎所有内容都必须重新编码。

总而言之,只要不使用最新 Java 版本的语法,您就可以保留大部分域对象,但其余部分则必须重写。

在我看来,最好的办法就是重写所有内容。

You can keep your code as long as it's compatible with JME (more or less Java SE 1.3) and it only uses libraries compatible.

You can't really keep your GUI and almost everything will have to be recoded.

To sum up, you can keep most of your domain objects as long as it doesn't uses syntax from last Java versions, but the rest will have to be rewritten.

The best thing to do is to rewrite everything IMO.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文