View.setKeepScreenOn(true) 需要 "android.permission.WAKE_LOCK" 权限吗? 我目前的推断是“G1 (cupcake 1.5)上不需要,emulator 和其他设备/平台可能需要”。
如果你的程序调用了 View.setKeepScreenOn() 并且出现了莫名其妙的 “Force close” 的话,不妨试试加上这个 permission。
View.setKeepScreenOn(true) 需要 "android.permission.WAKE_LOCK" 权限吗? 我目前的推断是“G1 (cupcake 1.5)上不需要,emulator 和其他设备/平台可能需要”。
如果你的程序调用了 View.setKeepScreenOn() 并且出现了莫名其妙的 “Force close” 的话,不妨试试加上这个 permission。