主要是针对双卡用户,方便选择电话卡拨打
1)直接拨打
1
2
|
Intent intentPhone = new Intent(Intent.ACTION_CALL, Uri.parse( "tel:" + phoneNumber)); startActivity(intentPhone); |
2)跳转到拨号界面
1
2
3
|
Intent intent = new
Intent(Intent.ACTION_DIAL,Uri.parse( "tel:" + phoneNumber)); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent); |