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