關(guān)于撥打電話bug:
小米android版本不兼容:
/**
?* 撥打電話(直接撥打電話)
?* @param phoneNum 電話號碼
?*/
public void callPhone(String phoneNum){
? ? Intent intent = new Intent(Intent.ACTION_CALL);
? ? Uri data = Uri.parse("tel:" + phoneNum);
? ? intent.setData(data);
? ? startActivity(intent);
}
改:Intent intent = new Intent(Intent.ACTION_DIAL);