Symbian
Symbian OS Library

FAQ-0708 Why does my code using javax.telephony.CallObserver not work?

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: JavaPhone
Created: 05/14/2001 Modified: 07/26/2001
Number: FAQ-0708
Platform: Symbian OS v6.0, Symbian OS v6.1, Symbian OS v7.0

Question:
Why does my attempt to add a javax.telephony.CallObserver to a Call object with the addObserver() method cause a
MethodNotSupportedException?


Answer:
The Symbian JavaPhone implementation does not support the Observer paradigm, which was deprecated in JDK 1.1. Instead you should use the equivalent Listener functionality. As Observer-related classes including the javax.telephony.events package have been shipped with Symbian's JavaPhone implementation in javaphone.jar, you can still instantiate these objects. (Arguably they should have been removed.) But you will not be able to use them.