Learn to Stop Worrying and Love the Singleton

Fredrik Olsson

Enterprise applications and mobile applications have quite different requirements. Starting an enterprise application is just something you do once before it continue running for months or years. On the other side of the spectrum most mobile applications seldom runs for more than minutes, run by a bored users standing in line or riding the bus. [...]

Tags: , , , , ,

Java ME: The Lost Application

As a professional Java ME developer I’ve never really come to terms with the MIDlet class and its underlying aesthetics. As a sort of remedy I often use a simple utility-class I wrote some years ago to conceal the principles of the MIDlet class. It concerns the way you write your Java ME-application so I [...]

Tags: , , ,

Getting started with JavaME jUnit testing

Mattias Severson

Introduction Unit testing is a very powerful tool that should be included in every developer’s toolbox. Unfortunately, this has not always been the case, especially not among MIDlet developers. One reason is that JavaME projects usually are small (compared to Java SE projects), which implies that manual testing could be enough. However, as soon as [...]

Tags: , , ,

How to mock MIDP RecordStore

Mattias Severson

The challenge PowerMock is a mocking framework that claims to have almost supernatural powers. According to its documentation it is able to mock both static and private methods, final classes, and other nasty things that would be insurmountable obstacles for other mock frameworks. As a result, it has been stated that it should be able [...]

Tags: , , ,

LWUIT – an introduction

Johan Karlsson

Have you ever tried to create a business application in Java ME? The user interface toolkit provided by MIDP 2.0 is very limited. There is now an alternative toolkit available. Read on and you will learn about this new user interface toolkit. But be aware, there will be some spiffy source code and an accompanying [...]

Tags: , , , ,

Java ME Graphics –The Next Generation

Anders Göransson

It has long been difficult if not virtually impossible to use graphics that adapt to the various screen sizes and aspect ratios that come with different mod- els of mobile phones. Neither has it been easy to create, generate and run animations as part of the user interface. The graphic capabilities of MIDP have always [...]

Tags: , , , , ,

Aspect Oriented Programming In Java ME

Magnus Robertsson

Do you want to structure your Java ME applications better? Aspect Oriented Programming is a cool technology that can modularize your applications and separate the verbose infrastructure code from the application logic. The only catch is that it doesn’t exist for Java ME. Or does it? Introduction Aspect Oriented Programming (AOP) is gaining popularity within [...]

Tags: , , , , ,

3DAudio – on mobile devices

Peter Winzell

Hear that chopper closing in on your troops? Turn your head and see… 3D Sound in your cellphone? Read this article to find out how it is done and how you make it happen on your phone. The ability to simulate spatial sound allows listeners to experience multimedia applications in “a captivating and natural way” [...]

Tags: , , ,

Java ME Testing Done Right

Magnus Robertsson

Is there a right or wrong way to unit test applications? We believe so. Especially when it comes to testing Java ME applications. Down-scaled copies of our faithful testing frameworks are popping up everywhere in the Java ME community. But has anyone dared to ask the question: Why? The Problem Java Micro Edition (Java ME) [...]

Tags: , , , , ,