android开发

专注于android开发

导航

View.setKeepScreenOn(true) 需要 "android.permission.WAKE_LOCK" 权限?

    View.setKeepScreenOn(true) 需要 "android.permission.WAKE_LOCK" 权限吗? 我目前的推断是“G1 (cupcake 1.5)上不需要,emulator 和其他设备/平台可能需要”。

    如果你的程序调用了 View.setKeepScreenOn() 并且出现了莫名其妙的 “Force close” 的话,不妨试试加上这个 permission。

posted on 2009-09-07 13:26  android开发  阅读(1917)  评论(0)    收藏  举报

大连网站建设、大连做网站、大连网站建设、大连网站设计、大连做网站电话、大连做网站。