移动从J2ME到Android [英] Moving to Android from J2ME

查看:135
本文介绍了移动从J2ME到Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我来自 J2ME 编程是否有任何相似之处,将可以很容易地适应 Android的API 。或者是 Android的API 完全从 J2ME 编程移动应用程序的方式不同。

Coming from J2ME programming are there any similarities that would make it easy to adapt to Android API. Or is Android API completely different from the J2ME way of programming mobile apps.

推荐答案

其实Android的API是比J2ME更加强大。

Actually the Android API is much more powerful than the J2ME.

这是很容易创建为Android应用程序。

It is much easier to create an application for the Android.

使用您仅限于简单的形式J2ME由于摆样库的缺席(虽然现在存在一个名为LWUIT库,避免了需要从头秋千般的库重建)。

Using the J2ME you are limited to simple forms due to the absent of swing-like libraries (though now there exists a library called LWUIT, avoiding the need to recreate from scratch a swing-like library).

在Android中,你将能够非常快速地创建复杂的形式和软件为Android SDK是易于安装(而在J2ME,你必须安装来自太阳的无线开发工具包,或者安装一个基于诺基亚的,三星的或索尼爱立信的...它变得有点混乱,有时)。

In Android you will be able to create complex form very quickly, and software package for the android SDK is easy to install (while in J2ME you have to install the wireless development toolkit from sun, or install one of Nokia's, Samsung's or SonyEricsson's... it gets a bit confusing sometimes).

我有东西从J2ME到Android切换时更改为:

The things I had to change when switching from j2me to android were:

1 /的字体和图形类更容易上J2ME使用。 API是更彻底在Android,但也更复杂。

1/ The font and graphics class is easier to use on j2me. The API is more thorough on Android, but also more complicated.

2 /如果你是用来J2ME的数据库存储(RecordStore的),那么你可以在Android中忘记它。你将不得不使用一个类似SQL的录入数据库,所以ppared重新考虑你的数据模型$ P ​​$。

2/ If you are used to the database storage of j2me (RecordStore), well you can forget it in Android. You will have to use a SQL-like databased, so be prepared to rethink your data model.

这篇关于移动从J2ME到Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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