Android 使用swicth case结构判断手机待机、来电等状态,里面的拨号仅为测试,实际中并不能这样拨号哦:   switch(state){   case TelephonyManager.CALL_STATE_IDLE://待机状态    Toast.makeText(Sample_11_6.this, "当前手机为待机状态", Toast.LENGTH_LONG).show();    break;   case TelephonyManager.CALL_STATE_OFFHOOK://通话中    Toast.makeText(Sample_11_6.this, "当前手机为