Hi!

I want to use the JTAPI to write a PersonalJava Application on NOKIA9210C,
and i need to get the Caller's ID(telephone number).
In the Symbian's Demo Application, the comments tell me can get the Caller's ID (phone number).
But, when i download this Demo program to my 9210c and run it, the output about Caller's ID is "empty string"
Why?
Please help me! Thanks....


public class PhoneListener implements TerminalConnectionListener
{
:
:
public void terminalConnectionRinging( TerminalConnectionEvent ev )
{
reportEvent( "terminalConnectionRinging", ev );
try
{
TerminalConnection tc = ev.getTerminalConnection();
PhoneCall.origConnection = tc.getConnection(); // So we can drop the call
tc.answer();
phoneApp.println( "Successfully answered incoming call" );

// Try and print details of the incoming call. But all this does is print the handset's phone number
Connection[] connections = ev.getCall().getConnections();
for( int i = 0; i < connections.length; i++ )
{
phoneApp.println( "Address name: " + connections[i].getAddress().getName());
}
}
// Can throw: ResourceUnavailableException, InvalidStateException,
// PrivilegeViolationException, MethodNotSupportedException
catch( Exception ex )
{
phoneApp.println( "Problem answering incoming call: " + ex );
}
}
:
:
}