Introduction




Name of Experiment: Display IMEI Number of NOKIA ASHA 501

Exp No: 3

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

Summary: After going through this experiment, student should be able to display IMEI Number on Nokia Asha 501 device.

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

Target

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

Procedure

SourceCode

Source Code:

package imeidemo;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class Imeidemo extends MIDlet {
Form form;
String imei;

public Imeidemo() {// TODO Auto-generated constructor stub
form=new Form("ĪMEI Number");
imei=System.getProperty("com.nokia.mid.imei");
form.append("IMEI Number="+imei);
form.append("\n"+"By:Nicy Kaur Taneja");
form.append("Vandana Kumari");}
protected void destroyApp(boolean unconditional)
throws MIDletStateChangeException {// TODO Auto-generated method stub}
protected void pauseApp() {// TODO Auto-generated method stub}
protected void startApp() throws MIDletStateChangeException {// 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: Students have successfully displayed the IMEI Number of NOKIA Asha 501 device.

Video Link

Download