码迷,mamicode.com
首页 > 移动开发 > 详细

Android异常:唤醒锁未授权。(Caused by: java.lang.SecurityException: Neither user 10044 nor current process has android.permission.WAKE_LOCK.)

时间:2016-05-30 14:35:18      阅读:1444      评论:0      收藏:0      [点我收藏+]

标签:

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"/>

Android异常:唤醒锁未授权。(Caused by: java.lang.SecurityException: Neither user 10044 nor current process has android.permission.WAKE_LOCK.)

标签:

原文地址:http://www.cnblogs.com/godwithus/p/5542231.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!