2009-06-29 34 views

Trả lời

8

Có thể thực hiện được. Bạn cần phải móc vào "Sự kiện điện thoại" và tạo một người nghe điện thoại. Các tài liệu cung cấp một số gợi ý về điều này. để khởi động Java IDE yêu thích của bạn và bật lên!

http://na.blackberry.com/eng/deliverables/1076/development.pdf (nhìn xung quanh trang 190)

Listen for phone events.  >Implement the PhoneListener interface. 
Register the phone listener. >Invoke Phone.addPhoneListener(). 
Remove a phone listener.  >Invoke removePhoneListener(). 

Khi có cuộc gọi mới đến nó sử dụng callIncoming (int) gọi lại. Có nhiều hơn:

A call is added to a conference call. 
    callAdded(int) 

    A BlackBerry® device user answers a call (user driven). 
    callAnswered(int) 

    A conference call is established. 
    callConferenceCallEstablished(int) 

    The network indicates a connected event (network driven). 
    callConnected(int) 

    A direct-connect call is connected. 
    callDirectConnectConnected(int) 

    A direct-connect call is disconnected. 
    callDirectConnectDisconnected(int) 

    A call is disconnected. 
    callDisconnected(int) 

    A BlackBerry device user ends the call. 
    callEndedByUser(int) 

    A call fails. 
    callFailed(int, int) 

    A new call arrives. 
    callIncoming(int) 

    The BlackBerry device initiates an outgoing call. 
    callInitiated(int) 

    A call is removed from a conference call. 
    callRemoved(int) 

    A held call resumes. 
    callResumed(int) 

    A call is waiting. 
    callWaiting(int) 

    A conference call is ended (all members are disconnected). 
    conferenceCallDisconnected(int) 
Các vấn đề liên quan