link : http://2-up.tistory.com/713
[sourcecode language="objc"]
private static PowerManager pm = null;
private static PowerManager.WakeLock wl = null;
public static void getSystemPowermanager(){
pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
}
public static void getSystemWakelock(){
if( pm != null )
wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SECUEYE");
}
public static void aquire(){
if( wl != null )
wl.acquire();
}
public static void releaseWakelock(){
if( wl != null )
{
wl.release();
wl = null;
}
}
[/sourcecode]