Code example for ClientConnectionManager

Methods: shutdown

0
	    // shut down the connection manager to ensure 
	    // immediate deallocation of all system resources 
		if(httpclient!=null) {
			ClientConnectionManager connectionManager = httpclient.getConnectionManager();
			if(connectionManager!=null) {
				connectionManager.shutdown();
			} 
		} 
		 
		super.onDestroy(); 
	} 
	 
	public String getCurrentTimeAsString() {
		time.setToNow();
		return time.format3339(false);
		///To change this str back into a Time object, use the following: 
		//    Time readTime = new Time(); 
		//    readTime.parse3339(timeStr);  //str was saved out using RFC3339 format, so needs to be read in as such 
		//    readTime.switchTimezone("Asia/Tokyo");  //parse3339() automatically converts read in times to UTC.  We need to change it back to the default timezone of the handset (JST in this example) 
	} 
Contextual code suggestions in your IDE  Get Codota for Java