How to grant MODIFY_PHONE_STATE permission for apps ran on Gingerbread
问题 I write an application that attempts to modify phone call state. It works well on Android 2.2 or less, but throw an exception on Android 2.3 because of the lack of permission on android.permission.MODIFY_PHONE_STATE permission (I declared this permission on AndroidManifest.xml). Any idea? Below is the exception log: 01-15 09:14:23.210: ERROR/AndroidRuntime(404): FATAL EXCEPTION: main 01-15 09:14:23.210: ERROR/AndroidRuntime(404): java.lang.RuntimeException: Unable to start receiver test