Android异常:Caused by: java.lang.SecurityException: Neither user 10044 nor current process has android.permission.WAKE_LOCK.

原因:未授权使用唤醒锁。

解决:在AndroidManifest.xml的<manifest>标签中加入:

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

顺便授权写SDCard:

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

posted on 2016-05-30 13:58  god with us  阅读(15822)  评论(0编辑  收藏  举报