Samsung 10.1 Android タブレットから電話をかけるにはどうすればよいですか? タブレットはミニ SIM カード、2G および 3G ネットワークをサポートしています。ただし、タブレットで SMS を受信することはできますが、電話をかけることはできません。アプリ内から電話をかけようとすると、[新しい連絡先を追加] にリダイレクトされます。(電話デバイスから電話をかけても問題なく機能することに注意してください!)電話をかけるための私のコードは次のとおりです。
public void onClick(View v) {
String destination = mContactsAt.getText().toString();
Log.d("CallActivity", "after getting the contact name");
String phoneNo = getPhoneNumber(destination);
Log.d("CallActivity", "after showing number");
if (phoneNo.startsWith("+")){
phoneNo.replace("+", "00");
}
phoneNo.replaceAll("[^0-9]+", "");
Log.d("CallActivity", "phoneNo to call =" + phoneNo + " destination " + destination);
phoneNumber = phoneNo;
contactName = destination;
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:"+phoneNo.trim()));
startActivity(intent);
}