Code example for PowerManager.WakeLock

Methods: isHeld, release

0
				startProbe(); 
			} catch( IOException e ) {
				Log.e( TAG, "onHandleIntent : error", e );
			} finally { 
				 
    			if( wakeLock.isHeld() ) {
    				wakeLock.release();
    			} 
				 
				Intent completeIntent = new Intent( ACTION_COMPLETE );
				completeIntent.putExtra( EXTRA_COMPLETE, "Frontends are being discovered" );
			 
				sendBroadcast( completeIntent );
			} 
		} 
		 
		Log.v( TAG, "onHandleIntent : exit" );
	} 
 
	// jmDns interface