在启动应用程序时面对logcat中的错误

时间:2013-02-21 12:49:13

标签: android

java.lang.RuntimeExeptions:无法启动活动ComponntInfo {com.securityExeption:PermitionDenial:编写com.android.providers.settings.SettingsProvider uri content:// settings / system from pid = 1895,uid = 10056需要android。 permission.WRITE.SETTINGS

1 个答案:

答案 0 :(得分:2)

java.lang.RuntimeExeptions:Unable to start activity ComponntInfo{com.securityExeption:PermitionDenial:writing com.android.providers.settings.SettingsProvider uri content://settings/system from pid=1895, uid=10056 requires android.permission.WRITE.SETTINGS

添加:

<uses-permission android:name="android.permission.WRITE_SETTINGS"/>

到项目的应用程序标记

上面的manifest.xml文件