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

查看:23
本文介绍了从 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 时,由于缺少类似 Swing 的库(尽管现在有一个名为 LWUIT 的库,避免了从头开始重新创建类似 Swing 的库),因此您只能使用简单的形式.

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中,您必须安装sun的无线开发工具包,或者安装诺基亚、三星或三星的无线开发工具包之一)索尼爱立信的...有时会有点混乱).

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上更容易使用.Android 上的 API 更全面,但也更复杂.

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 的数据库,因此准备重新考虑您的数据模型.

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天全站免登陆