For some odd reason, this phone "SKY IM-A630K" wants the
READ_PHONE_STATE permission just to send an SMS message. So how would
you guys handle this? I guess I should wrap sendTextMessage with a try
catch and somehow notify the user that this failed because their phone
is buggy. Is that it?
package_name=com.emergency.button, package_version=1.2,
phone_model=SKY IM-A630K, android_version=2.1-update1,
stacktrace=
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)
If you want to see how exactly sendTextMessage was invoked:
http://code.google.com/p/emergencybutton/source/browse/trunk/src/com/emergency/button/SMSSender.java?r=24
Any help would be appreciated,
--Yuv
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en