Tôi đã đọc một số câu hỏi liên quan về nó nhưng hầu hết trong số họ đã nhắm mục tiêu cuộc gọi chứ không phải SMS. Những gì tôi đã tìm thấy cho đến nay là:Kiểm tra xem điện thoại có thể gửi SMS
TelephonyManager manager = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);
if (manager.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE) {
// I guess here are devices that are unable to send SMS
} else {
// can send SMS
}
Đây có phải là thiết bị đúng với TelephonyManager.PHONE_TYPE_NONE không thể gửi SMS? Tôi thực sự không hiểu mô tả của TelephonyManager.PHONE_TYPE_NONE, đó là "Không có radio điện thoại".
Cảm ơn!
Kiểm tra này ra: http: //stackoverflow.com/questions/3814258/what-is-the-procedure-to-detect-if-an-android-device-has-sms-send-capability –