Playlist Creator for Smartphone's Running on Symbian OS


I have been developing a simple playlist creator for mobile phones. I have tested it on my Sony Ericsson P990. The playlist creator search all of your music files stored in your smartphone's memory stick and creates a playlist with the selected songs.

30/05/2008 Update :

  • Search Field supports delimited comma for multiple files search. For example: "Mic*.mp3, cem*.wma, *.amr, *.wav"

  • The "Search Path" field is the directory where the search progress will start
  • The "Search" field is the search criteria (e.x Michael*.mp3)
  • The "Search Path" + "Playlist Name" is the location for the playlist.
  • You should copy the created playlist to your smartphone and run the "update music" command to make the created playlist to appear in your "playlists" list.


Any feedback is appreciated.

Download Playlist Creator

For Loop

If you need to loop over a static collection it is common to write :

for (int i = 0; i < items.length; i++)
{
...... //do something
}

but if your items collection is very large this code has a small overhead. Because you have to check the length property in every steps and because it uses a reference to the length property it brings a performance penalty. For this situation I used the technique below:

for (int i = 0, len = items.length; i < len; i++)
{
...... //do something
}


This way you just check the items.length property once.