免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2070 | 回复: 0
打印 上一主题 下一主题

Running Java ME applications on Android [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-14 14:47 |只看该作者 |倒序浏览

Each new software platform, including Android, at the beginning is
struggling with a small number of the available applications. This is
why Google spent $10 million trying to attract developers to their
Android Developer Challenge before G1 phone release. Taking advantage
of an opportunity to run large number of existing Java ME applications
may determine a significant value for the Android platform. This is
also occasion for developers to reduce cost preparing mobile software
for a smaller number of platforms at the same time.
MicroEmulator
,
which is pure Java implementation of Java ME API's in Java SE, seems to
be very well suited for the Android. Last few months I've been working
extending
MicroEmulator
to be
an executable environment to run Java ME applications on that platform.
Here are results of my work with demonstration of popular Java ME game
5ud0ku
automatically translated to the Android.
These are screenshots of
5ud0ku
running side by side on emulators: Java ME and Android.


Works
to complete the effort are not finished yet, but I hope a lot of
existing Java ME applications can be already transformed to Android. At
the moment code is only available in SVN repository. For anyone
interested, here is the short manual how to convert
5ud0ku
yourself:
1. Check out
MicroEmulator
from SVN repository
svn co https://microemulator.svn.sourceforge.net/svnroot/microemulator/trunk/microemulator microemulator
2. Build
MicroEmulator
project using
Maven
cd microemulator
mvn
3. Make sure that the following properties in microemu-android/build.xml correctly point to the
Android SDK
and
ASM
jar file
4. Configure properties for
5ud0ku
game, edit microemu-android/build.xml file (before you have to save 5ud0ku.jar in microemulator folder)
5. Create Android apk package with
Ant
cd microemu-android
ant
6.
And finally deploy microemu-android/bin/5ud0ku.apk on emulator or G1
phone. For all of you who don't want to go through this somehow long
procedure, here it is already prepared
5ud0ku.apk
package.
Posted by
Bartek Teodorczyk
at
4:10 PM
---EOF-----
http://microemu.blogspot.com/2008/11/running-java-me-applications-on-android.html


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/87831/showart_1863101.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP