Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デフォルトのカスタム ダイアログ ボックスの境界線の色を変更する方法
使用TelephonyManager.getPhoneType():
TelephonyManager.getPhoneType()
TelephonyManager tm = (TelephonyManager)Context.getSystemService(Context.TELEPHONY_SERVICE); int phoneType = tm.getPhoneType(); // test if phoneType is PHONE_TYPE_GSM or PHONE_TYPE_CDMA