public class OEMAccessTest2MIDlet extends MIDlet
{
// passed parameters
private String Old_Password;
private String New_Password;
// construcror
public OEMAccessTest2MIDlet ()
{
super();
}
public void startApp() throws MIDletStateChangeException
{
//display
System.out.println("OEM Access Test 2 MIDlet");
System.out.println("++++++++++++++++++++++++");
// get parameters from JAD
Old_Password = getAppProperty("OldPassword");
New_Password = getAppProperty("NewPassword");
// main function
GetMIDletValues();
}
public void pauseApp()
{
}
public void destroyApp(boolean unconditional)
{
notifyDestroyed();
}
private void GetMIDletValues ()
{
// try to change password for SIM Pin1 (async)
//-------------------------------
try
{
Access.getInstance().changeSIMPin1(Old_Password, New_Password);
}
catch (OEMException e)
{
e.printStackTrace();
}
}
}
|