我的应用程序发送了这个堆栈跟踪,似乎底层发生了非常严重的问题。
phone_model=SKY IM-A630K, android_version=2.1-update1
java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10089 nor current process has android.permission.READ_PHONE_STATE.
at android.os.Parcel.readException(Parcel.java:1218)
at android.os.Parcel.readException(Parcel.java:1206)
at com.android.internal.telephony.IPhoneSubInfo$Stub$Proxy.getLine1Number(IPhoneSubInfo.java:223)
at android.telephony.TelephonyManager.getLine1Number(TelephonyManager.java:764)
at android.telephony.SmsManager.sendTextMessage(SmsManager.java:129)
at android.telephony.SmsManager.sendTextMessage(SmsManager.java:108)
at com.emergency.button.SMSSender.safeSendSMS(SMSSender.java:91)
at com.emergency.button.EmergencyActivity$EmergencyThread.sendSMS(EmergencyActivity.java:294)
at com.emergency.button.EmergencyActivity$EmergencyThread.sendMessages(EmergencyActivity.java:386)
at com.emergency.button.EmergencyActivity$EmergencyThread.run(EmergencyActivity.java:266)
那我是不是应该在sendTextMessage周围捕获所有异常?这是谁的错?