Code example for ScheduledExecutorService

Methods: shutdown

0
	 */ 
	private void stopExecutorTask() { 
		if (DEBUG_LOGGING) {
			Log.d(LOG_TAG, "stopExecutorTask");
		} 
		queueSchedular.shutdown();
	} 
	/** 
	 * Verify that a network exists and is connected. Declared as public to allow reflection. 
	 *  
	 * @param futureState 
	 */ 
	public void verifyNetworkConnectivity(ConnectionState futureState) {
		if (DEBUG_LOGGING) {
			Log.d(LOG_TAG, "verifyNetworkConnectivity: " + futureState.name());
		} 
		ConnectivityManager cm =
		        (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
 
		NetworkInfo activeNetwork = cm.getActiveNetworkInfo();