0

Possible Duplicate:
How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread

i want to abort a call but i m getting an error that: Neither user 10076 nor current process has android.permission.MODIFY_PHONE_STATE.

i am also give the permission in manifest for that but i found that android 2.3 is not giving the permission for MODIFY_PHONE_STATE.

so pls give any better solution for this?

Community
  • 1
  • 1
akki
  • 405
  • 1
  • 6
  • 13

1 Answers1

3

take a look at How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread

Community
  • 1
  • 1
Rajath
  • 11,787
  • 7
  • 48
  • 62
  • MODIFY_PHONE_STATE permission is no longer working on silenceRinger() since 2.3+, but endCall is just fine. So the solution is to comment out the call to silenceRinger(). – AndroidRaji Nov 06 '12 at 11:05