Motorola E680 - Smartphone - GSM Developer's Manual page 78

Micro edition (j2me) applications
Hide thumbs Also See for E680 - Smartphone - GSM:
Table of Contents

Advertisement

case DialerEvent.PHONE_VOICECALL_INIT:
// your process
break;
case DialerEvent.PHONE_VOICECALL_FAILURE:
// your process
break;
case DialerEvent.PHONE_VOICECALL_CONNECT:
// your process
break;
case DialerEvent.PHONE_VOICECALL_DISCONNECT:
// your process
break;
case DialerEvent.PHONE_VOICECALL_TIMEOUT:
// your process
break;
case DialerEvent.PHONE_VOICECALL_HOLD:
// your process
break;
case DialerEvent.PHONE_VOICECALL_UNHOLD:
// your process
break;
case DialerEvent.PHONE_VOICECALL_DTMF_FAILURE:
// your process
break;
}
}
// Required MIDlet method - release the connection and
// signal the reader thread to terminate.
public void pauseApp() {
try {
dialer.endCall();
} catch (IOException e) {
// Handle errors
}
}
// Required MIDlet method - shutdown.
// @param unconditional forced shutdown flag
public void destroyApp(boolean unconditional) {
try {
dialer.setDialerListener(null);
dialer.endCall();
} catch (IOException e) {
// Handle shutdown errors.
}
}
}
78

Advertisement

Table of Contents
loading

Table of Contents