public void notifyCallFresh() { Log.w("RedPhoneService", "Good call, time to ring and display call card..."); sendMessage(RedPhone.HANDLE_INCOMING_CALL, remoteNumber); lockManager.updatePhoneState(LockManager.PhoneState.INTERACTIVE); startCallCardActivity(); incomingRinger.start(); NotificationBarManager.setCallInProgress(this); }
private void handleOutgoingCall(Intent intent) { remoteNumber = extractRemoteNumber(intent); if (remoteNumber == null || remoteNumber.length() == 0) return; sendMessage(RedPhone.HANDLE_OUTGOING_CALL, remoteNumber); state = RedPhone.STATE_DIALING; lockManager.updatePhoneState(LockManager.PhoneState.INTERACTIVE); this.currentCallManager = new InitiatingCallManager(this, this, localNumber, password, remoteNumber, zid); this.currentCallManager.start(); NotificationBarManager.setCallInProgress(this); currentCallRecord = CallLogger.logOutgoingCall(this, remoteNumber); }