Bridging the Gap Between Java and Cocoa

Fredrik Olsson

Many Java developers are looking at new dynamic languages, such as Groovy and JRuby, mostly because of the freedom and rapid development that a dynamic language allows. Some of my colleagues are also looking at Cocoa and feel daunted at the sight of Objective-C. Here I will use a small example that is easy and [...]

Tags: , , , , , ,

UIToolbars in iPhone OS 2.x

Fredrik Olsson

The new release of iPhone OS 3.0 adds some nice API:s for managing a contextual toolbar. This is well needed as toolbars in the current iteration of iPhone OS is not only poorly documented, it is also quite hard to do right. So I will go over how to do toolbars the right way, for [...]

Tags: , , , , , , , ,

Hidden methods in Sony Ericsson Java Platform

Fredrik Olsson

It is no secret that the published interfaces for MIDP classes in any JavaME Platform is only a subset of what in reality is there. Most of the native calls needed to interact with the underlying native platform, and other helper methods, are hidden from us. Mostly for good, and sometimes for bad… The Anecdotal [...]

Tags: ,

Finding Subview of a Particular Class in Cocoa

Fredrik Olsson

Many of the UIView subclasses in Cocoa, and especially Cocoa Touch are created by combining many different simple views into a more complex view. UITableViewCell is a good example, concisting of almost a dozen subviews, UIImageView for the image, UILabel for the text, etc. It is often nice to be able to reuse existing functionality [...]

Tags: , , , ,

Fixing Image#getRGB()

Fredrik Olsson

I have encountered a problem when implementing a nine-patch painter for MIDP 2.0, most of my graphics where left transparent for no-reason. A nine-patch is an image with a flexible center row, and a flexible center column. Most useful when doing themed UI, as a single image can be used to draw buttons, and boxes [...]

Tags: , ,

Java ME Logging over Bluetooth using MicroLog

Henrik Larne

When developing in Java ME and wanting to support several different devices, you wil no doubt run into problems with devices behaving differently. In some cases it is only the appearance that changes and in others the actual functionality varies or breaks. The first step in solving this is to run your Midlet in the [...]

Tags: , ,

iPhone Tech Talks – Stockholm

Fredrik Olsson

Apple has arranged a world tour of iPhone Tech Talks, and in cold december it was Scandinavia’s turn and a crew of software evangelists from Apple turned up at KTH in Stockholm for a full day of sessions. The sessions are confidential so I will keep this post vague on the technical parts, not revealing [...]

Tags: , , , , , ,

Android on the FreeRunner

Peter Neubauer

Hi there, Øredev was great success, especially all the people and the organization – a big Thank You to Michael and Emily for making this possible, you rock! Now, it was really awesome to exchange Android games with Mike Jennings fro the Android team, and get him excited over the recent Android port to the [...]

Tags: , , , ,

Give back my XMPP in Android!

Peter Neubauer

Since the release of the Android SDK 1.0, people (including me) have been complaining about the lack of connectivity for the very convenient Smack API to talk to Googles GTalk servers following http://davanum.wordpress.com/2007/12/31/android-just-use-smack-api-for-xmpp/, see here. However, yesterday @Øredev, I met Mike Jennings from the Android team and together we looked into this problem over a [...]

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: , , , ,

My First Weekend With iPhone SDK

Fredrik Olsson

My first reaction is that it is polished. Very polished. I have used the unofficial SDK for iPhone OS 1.x software, and nearly everything from iPhone OS 1.x has been redesigned. Small changes from renaming, to removal of changes, and addition of complete frameworks. Not only the provided Frameworks are polished even in beta, so [...]

Tags: , , , , ,