创建一个android应用(AndroidTest),所需权限如下(AndroidManifest.xml文件): 接下来是获取sim卡方法: /** * 获取SIM卡号 * * 用到的权限: * */ public String getSim(Context ctx) { String strResult = ""; TelephonyManager telephonyManager = (TelephonyManager) ctx .getSystemService(Context.TELEPHONY_SERVICE); if (telephonyManager != null) { strResult = telephonyManager.getSimSerialNumber(); } return strResult; }