Monday, March 22, 2010

AlarmMIDlet

public class AlarmMIDlet extends MIDlet implements ItemStateListener, CommandListener {
private Command alarmCommand= new Command("alarm", Command.SCREEN, 1);

private Command resetCommand= new Command("Reset", Command.SCREEN, 1);

private Command exitCommand= new Command("Exit", Command.EXIT, 1);

private Display display;

private DateField alarmTimeSetting;

private Form aForm= new Form("Alarm Setting");

private int dateIndex;

private Date currentTime= new Date();

private Timer aTimer;

private boolean dateOK = false;

public AlarmMIDlet() {
display = Display.getDisplay(this);
alarmTimeSetting = new DateField("", DateField.DATE_TIME);
alarmTimeSetting.setDate(currentTime);

dateIndex = aForm.append(alarmTimeSetting);
aForm.addCommand(alarmCommand);
aForm.addCommand(resetCommand);
aForm.addCommand(exitCommand);
aForm.setCommandListener(this);
aForm.setItemStateListener(this);
}

read more...

No comments:

Post a Comment

Please, select your language:

Recommended Software :: Free Download ::

Click image to download Java Development Kit (JDK)

Click image to download Wireless Toolkit (WTK)

Click image to download Crimson Editor
We have placed this source code in the public domain. You can use, modify, and distribute the source code and executable programs based on the source code. However, note the following:
DISCLAIMER OF WARRANTY
This source code is provided "as is" and without warranties as to performance or merchantability. The author and/or distributors of this source code may have made statements about this source code. Any such statements do not constitute warranties and shall not be relied on by the user in deciding whether to use this source code.
We just wanted to share our knowledge. Indeed some source code uploaded here private property, but some other source code, we get from other sites. Therefore, we do not claim that all the source code is ours. once again, we're just trying to share with others. If you feel that one of your source code created in this blog and feel reluctant to share with others. You can email us at stateid_next2@yahoo.com. thank you.

Keyword : timer, alarm, schedule, src, set timer, set alarm

Timer : Snooze.java

Details Description

Download

SimpleTimer MIDlet

Details Description

Download

DATETODAY

Details Description

Download

PROJECT 01 : SET TIMER SCHEDULE

Details Description

Download Source

Download App Jar and Jad

ALARMMIDLET

Details Description

Download

ALARM TIMER

Details Description

Download

FIXED RATE SCHEDULE MIDLET.JAVA

Details Description

Download