1

i am created an app for showing customizing call screen ,using phonsstatelistener. The screen is having my created pick and end button for answering and rejecting the incoming call respectively. But,the pick button doesnt work in android Version 2.3+ giving Secuirty Exception.

Please provide any other way out of showing data on the phone incoming call screen in android

user2134738
  • 13
  • 1
  • 3
  • 3
    what you have tried? Some code will be good. And also post your logcat. – baldguy Mar 05 '13 at 07:55
  • I use phonestatelistener to pick the event of phone Ringing and it shows the data along with pickup and reject button.The pick button shows following in android2.3+ 03-05 13:43:08.877: W/System.err(497): java.lang.SecurityException: Neither user 10035 nor current process has android.permission.MODIFY_PHONE_STATE. 03-05 13:43:08.877: W/System.err(497): at android.os.Parcel.readException(Parcel.java:1322) 03-05 13:43:08.877: W/System.err(497): at android.os.Parcel.readException(Parcel.java:1276) – user2134738 Mar 05 '13 at 08:00
  • have you added this in your manifest?? If not try this – baldguy Mar 05 '13 at 08:31
  • yes,i have added that in my manifest file ,my apps works perfectly on android 2.2 but gives error only in android 2.3+ – user2134738 Mar 05 '13 at 08:44

1 Answers1

0

For more useful demo please check this one :

show the information in the middle of the call

Maybe this will help you to some extent.

And also check this link for exception :

How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread

Community
  • 1
  • 1
baldguy
  • 2,090
  • 1
  • 16
  • 25