我希望用户在点击通话时选择从哪个SIM卡进行通话。
呼叫功能如下,我该如何实现呢。 Heard Dual Sim支持适用于Android
public void Call(String tel)
{
String Hash = Uri.encode("#");
int permissionCheck= ContextCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE);
if (permissionCheck!= PackageManager.PERMISSION_GRANTED)
{
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CALL_PHONE},123);
//requestPhonePermission();
}else
{
Intent intent=new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:"+"*"+141+"*"+tel+Hash));
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//TODO prompt for sim to call from
intent.putExtra("com.android.phone.force.slot", true);
startActivity(intent);
}