我已经设置了我的虚拟电话号码以转发我的手机上的电话。当转接呼叫时,我收到的是来电号码,但不是他们拨打我们的电话号码。
是否有可能获得他们拨打我们的号码?
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;
}
}
答案 0 :(得分:0)
据我所知,只能获得来电号码。