2013-05-07 65 views
2

我想從我的應用程序中添加電話會議,通過反射在嘗試,如果canDial是真還是假,但回到安全exception.Attached是日誌文件。權限拒絕:不允許發送廣播的Android

01-07 04:24:36.890: E/AndroidRuntime(1062): FATAL EXCEPTION: main 
01-07 04:24:36.890: E/AndroidRuntime(1062): java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.provider.Telephony.SPN_STRINGS_UPDATED from pid=1062, uid=10056 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at android.os.Parcel.readException(Parcel.java:1322) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at android.os.Parcel.readException(Parcel.java:1276) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:1548) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at android.app.ContextImpl.sendStickyBroadcast(ContextImpl.java:726) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at android.content.ContextWrapper.sendStickyBroadcast(ContextWrapper.java:297) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at com.android.internal.telephony.gsm.GsmServiceStateTracker.updateSpnDisplay(GsmServiceStateTracker.java:609) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at com.android.internal.telephony.gsm.GsmServiceStateTracker.pollStateDone(GsmServiceStateTracker.java:948) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at com.android.internal.telephony.gsm.GsmServiceStateTracker.pollState(GsmServiceStateTracker.java:782) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at com.android.internal.telephony.gsm.GsmServiceStateTracker.handleMessage(GsmServiceStateTracker.java:378) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at android.os.Handler.dispatchMessage(Handler.java:99) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at android.os.Looper.loop(Looper.java:130) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at android.app.ActivityThread.main(ActivityThread.java:3683) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at java.lang.reflect.Method.invokeNative(Native Method) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at java.lang.reflect.Method.invoke(Method.java:507) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 
01-07 04:24:36.890: E/AndroidRuntime(1062):  at dalvik.system.NativeStart.main(Native Method) 

請讓我知道你的建議,以得到這個固定的。

+0

你會告訴我清單權限 – 2013-05-07 06:39:18

回答

0

java.lang.SecurityException: Permission Denial - 看起來你正在嘗試做什麼需要一個許可。該權限應該在AndroidManifest文件中指定。

相關問題