Contact sorting - Contact List, Part 3
Simple sorting of data from RecordStore
This is the final part of my little tutorial/coursework re-do, where I will show you how easily can stored contacts be organised.
Some of you may know that RecordStore works on base of LIFO - Last In, First Out approach. For example if record has been added in the order: peter, marta, bruno, mark they will be read out of RecordStore in reversed order as: mark, bruno, marta, peter. To get contacts sorted, there are two options; either try to put contacts in order every time new contact is added or, try to put them in order once they read out from RecordStore, just before they get displayed on screen. The first option is overkill as it is just too much work for application to perform each time new record is stored and pretty much useless (read all records, add new record in correct position and overwrite previous data), so second option is the obvious choice.
GUI design - Contact List, Part 2
Use of CustomItem
First task is to come up with user interface design. As the template of what I expect to have I previously mentioned I will use component layout from Sony Ericsson W910. Traditionally once user is inside main menu, set of 3 x 4 icons, and select Contacts the screen view will presents list of all contacts plus on top of it there is "New contact" option (on real device there is also "Myself" to create personal business card, but for the moment we can ignore that).
How to add resources to IntelliJ IDEA and NetBeans
Add image, sound, video or JAR files to your project in IntelliJ IDEA or NetBeans
From my web site log files I learn that some of the visitors been looking for a way to add resources (images, videos, sounds, libraries and others) to their mobile or other projects through NetBeans and IntelliJ IDEA.Until this day, I haven't got anything in regards of this topic so here we come. I will show you how I usually do it. I'm not sure if it is correct way to do it (if it is wrong and you know more appropriate way please do let me know) so consider it as sort of hack. On the end of this entry you can find link to download an example of small mobile application created in NetBeans with Java Platform Micro Edition SDK 3.0, it will also work with Sony Ericsson SDK 2.5.0.3. It will not work under Sun Java Wireless Toolkit 2.5.2 as this does not include Mobile Media API (JSR-135) library that I used for playing MP3 files in provided example.

