Introduction




Name of Experiment: Display "HELLO WORLD" on NOKIA Asha 501

Exp No: 1

Background: Student should have a basic knowledge of Java Programming.

Summary: After going through this experiment, student should be able to display some the text "Hello World" on Nokia Asha 501 device.

Learning Objective: Here, Student should learn the procedure to display Text on nokia Asha Device . After, doing this experiment user himself will be able to make an app to display any text on nokia Asha Device.

Target

Target Platform:This experiment is tested on Nokia Asha Device 501.

Procedure

SourceCode

Source Code:

package firstapp;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class Firstapp extends MIDlet {
Form form;
public Firstapp() {// TODO Auto-generated constructor stub

form.append("Vandana Kumari");

protected void destroyApp(boolean unconditional)

protected void pauseApp() {

protected void startApp() throws MIDletStateChangeException {

form=new Form("HELLO WORLD");

form.append("\n"+"Nicy Kaur Taneja");

form.append("02202062014");

form.append("03302062014");}

throws MIDletStateChangeException {

// T-ODO Auto-generated method stub }
// TODO Auto-generated method stub}
// TODO Auto-generated method stub
Display.getDisplay(this).setCurrent(form);}}

Snapshots



This is how the output appears on the emulator of NOKIA Asha SDK 1.0 on successful compilation of source code.

Observation

Observation: We have successfully displayed “HELLO WORLD” on NOKIA Asha 501 as well as the NOKIA Asha SDK 1.0.

Video Link

Download