Posts

  • Simplified 'Display' management for J2ME

    Switching between displayable objects such as canvases and alerts can become tricky when working on more complex applications. Code can easily become cluttered with excess “display” and “midlet” references, despite that there is usually only one unique display instance.

    Continue reading...

  • PrototypeJS extension: namespaces for JavaScript

    Namespaces are an extremely useful tool when working with numerous classes, functions or even objects in many programming languages. They allow the developer to group these entities in an intuitive way to facilitate readability.

    Continue reading...

  • Checkers game with basic AI in J2ME

    I bought a pretty awesome book called “Artificial Intelligence for Games” by Ian Millington and thought that it would be fun to make a simple checkers game for J2ME using the negascout algorithm that the book teaches.

    Continue reading...

  • Enhancement on soft-key detection

    With many thanks to Graham over at the Nokia Discussion forums I came across an interesting Wiki article (Platform independent key events processing) which provides a class that tries to determine common non-standard keycodes for a variety of handsets. The second handset that I tested was an LG KS360, unfortunately this detection class was unable to detect the soft key buttons.

    Continue reading...

  • Generic soft key detection in J2ME

    As many of you will be aware, the soft key buttons on mobile phones are general purpose whose purpose change with regard to context. Most popular handsets have two of these directly beneath the screen (one to the left, and one to the right).

    Continue reading...

  • XPointer Framework for XSLT 2.0

    In a recent project I found myself needing more flexibility when cross-referencing XML content during XSLT transformations. The XSLT 2.0 specification (as implemented by Michael Kay) only includes shorthand XPointers. So this seemed a good opportunity to write a more complete implementation of the XPointer Framework for Michael Kay’s fantastic Saxon processor.

    Continue reading...

  • My first mobile game

    I wanted to have a go at creating my first mobile game so I did some research to find out which tools people are using to do this. I found that games can be made for phones with J2ME (Java 2 Micro Edition) using the NetBeans IDE. Since this is my first J2ME game I just wanted to start with something straightforward. So I created a little game called “Worm” where you just have to collect as many fruit as possible.

    Continue reading...