开发者

Incoming call is blocked on emulator by using aidl but it gives fatal exception on mobile phone

开发者 https://www.devze.com 2023-02-19 04:24 出处:网络
I want to abort an incoming call. It works on the emulator but on the mobil开发者_JAVA百科e phone it gives an exception.

I want to abort an incoming call. It works on the emulator but on the mobil开发者_JAVA百科e phone it gives an exception.

FATAL EXCEPTION: main -
java.lang.SecurityException: Neither user 10076 nor current 
process has android.permission.MODIFY_PHONE_STATE.

What should I do for this?


If you're using Android 2.3+ (Gingerbread) you can't solve this problem: take a look here.


You need to include the permission android.permission.MODIFY_PHONE_STATE in the AndroidManifest.xml file. See this for details. And here is the list of permissions.

0

精彩评论

暂无评论...
验证码 换一张
取 消