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,124
  • 9
  • 58
  • 101
akki
  • 395
  • 1
  • 5
  • 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
  • 55,302
  • 13
  • 128
  • 150
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
  • 14,250
  • 8
  • 62
  • 86