2

I want to abort an incoming call. It works on the emulator but on the mobile 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?

T.Rob
  • 31,522
  • 9
  • 59
  • 103
akki
  • 405
  • 1
  • 6
  • 13
  • i m included the android.permission.MODIFY_PHONE_STATE permission but the exception is still coming. – akki Mar 24 '11 at 07:14

2 Answers2

5

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

Community
  • 1
  • 1
Marco
  • 56,740
  • 14
  • 129
  • 152
1

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.

Mudassir
  • 13,031
  • 8
  • 59
  • 87