A couple of J2ME questions for developers
As a newcomer to developing for mobile devices and the J2ME platform,
I’ve run into two small problems. I’m probably not alone, so I’d like to ask for advice here.
Source code for the MIDP API
First, I’m missing the source code for the MIDP 1.0 or 2.0 API. Unfortunately, it doesn’t come with the
Java 2 Micro Edition Wireless Toolkit, as you might expect. I couldn’t find it on
the official J2ME siteeither. Having the sources is very useful
when editing code and essential for features such as code assist and Javadoc integration in an IDE like Eclipse.
Working with graphics
In MIDP 1.0 there doesn’t seem to be a way to work with regions of an image. At least I haven’t found one. This comes up
in games, for example, when all the graphics are stored in one image and you pull individual pieces from it
to build the game screen. An overload of
createImage would do the job, for example Image.createImage(Image,x1,y1,x2,y2).
I haven’t looked into MIDP 2.0 or proprietary extensions from the likes of Nokia, but is there some way
to do this with the standard MIDP 1.0 API?
I’m asking because NkD and I
(he’s a colleague and friend, not a distribution company) are making a mobile remake of a famous
game from the ZX Spectrum days.
Related articles
Related CZ Podcast episodes
- #3 · Java 6 SE, Vývoj webových aplikací
Dagi and Filemon discuss Java 6 and web application frameworks. · Czech audio
- #1 · Vývojová prostředí v Javě
The first CZ Podcast episode looks at Java development environments. · Czech audio