View Full Version : J2ME Java - Walkman v2 help

10-20-2007, 10:20 PM
Hi im new here but i have read all the rules etc. I am trying to recreate the walkman v2 from the w850/w580/w880 but im stuck already. i have not got much experience with java but im jumping in head first in the deep end so any help is appreciated. I have got the program to start and i am using Wireless Toolkit from the SUN website.

I get the program to open but i want it to load an image from a folder in the same directory as the program called 'Skin' (./'Skin/NowPBG.gif' - Now Playing Back Ground). When the program is run it says Walkman Loading Please Wait... with the left softkey saying Play [this will play the song thats in view]. I want to make the right softkey say more and it will pop up the sub menu (like the w850) saying My Music, Settings (Play Mode (Shuffle, Loop), Equaliser [edit the equaliser]), File (Information, Send), Minimise [hide the application in the background].

This is only the 'Now Playing part of the walkman remember. Below is a list of what each link in the 'More' Menu will do.

My Music - Shows the Now playing, artists, albums, tracks and playlist view.
Settings - Shows the Play mode and equaliser menus
Play mode - Shows the Shuffle and Loop menus
Shuffle - Set the tracks to randomise
Loop - Puts the tracks to repeat
Equaliser - Shows the equaliser (this IS possible as SE have done it in the MAIN part of their firmwares)
File - Shows Information and send menus
Information - Info and the playing (or paused) track (artist, filename, length, filetype, and filesize)
Send - Shows the via bluetooth/IR menus (different for each fone this part i no will be hard)
Minimize - Plays the music in the background and hides the application

This is the code i have so far:

import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

public class NowPlaying
extends MIDlet
implements CommandListener {
private Form mMainForm;
private Form mMenuForm;

public NowPlaying() {
mMainForm = new Form("Now Playing");
mMainForm.append(new StringItem(null, "Walkman Loading Please Wait..."));
mMainForm.addCommand(new Command("Play", Command.[Play command here], 0));

public void startApp() {

public void pauseApp() {}

public void destroyApp(boolean unconditional) {}

public void commandAction(Command c, Displayable s) {

please help