1

我已经设置了我的虚拟电话号码,以便在我的手机上转接电话。当呼叫被转接时,我收到了来电号码,但没有收到他们拨给我们的号码。

是否有可能获得他们拨给我们的号码?

public class MyPhoneStateListener extends PhoneStateListener {
  private String[] projection = new String[] {
    People._ID, People.NAME, People.NUMBER
  };
  public void onCallStateChanged(int state,String incomingNumber){
    switch(state)
    {
      case TelephonyManager.CALL_STATE_IDLE:
        Log.d("DEBUG", "IDLE");
      break;
      case TelephonyManager.CALL_STATE_OFFHOOK:
        if(!incomingNumber.equals("")){
          handleCall(incomingCall);
        }
      break;
      case TelephonyManager.CALL_STATE_RINGING:
        Log.d("DEBUG", "RINGING");
      break;
    }
  }
4

1 回答 1

0

据我所知,只能得到传入的号码。

于 2015-05-20T08:48:07.137 回答