<span style="font-size:18px;">PowerManager pm = (PowerManager) mContext
.getSystemService(Context.POWER_SERVICE);
wakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK,
mContext.getClass().getCanonicalName());
wakeLock.acquire();</span>
摘自 liuxiIT的專欄