Code example for PowerManager.WakeLock

Methods: acquire

0
	 
	@Override 
	protected void onResume() 
	{ 
		super.onResume(); 
		wakeLock.acquire();
	} 
	 
	@Override 
	protected void onPause() 
	{ 
		wakeLock.release();
		super.onPause(); 
	} 
	 
	@Override 
	public boolean onTouchEvent( MotionEvent event )
	{ 
		if( event.getAction() == MotionEvent.ACTION_UP )
		{ 
			display.advance();