how to convert j2me running lwuit to android?

2019-02-27 13:05发布

问题:

How can i convert a J2ME application which is using lwuit library to an android apk ?

I tried to convert using mircoemulator but when I start the application it shows error and exits.

回答1:

Read this article, LWUIT for Android. Here clearly telling about How to do LWUIT with Android. Follow the stpes carefully and change the your MIDlet code. Just checkout the LWUIT-Incubator repository and use this for android development with LWUIT. Also read the README_Android.txt on this repository.



回答2:

There's no way to make a direct conversion. Strictly speaking, you can make a port, adapting the code, or use some emulator or wrapper to run the CLDC/MIPD classes.

The guys in Opera also used MicroEmulator for OperaMini.