Code example for ParcelFileDescriptor

Methods: close

0
	        builder.addDnsServer("8.8.8.8");
	       // builder.addSearchDomain("torproject.org"); 
	         
	        // Close the old interface since the parameters have been changed. 
	        try { 
	            mInterface.close();
	        } catch (Exception e) {
	            // ignore 
	        } 
	         
	 
	        // Create a new interface using the builder and save the parameters. 
	        mInterface = builder.setSession(mServerAddress)
	                .setConfigureIntent(mConfigureIntent)
	                .establish();
    	} 
    } 
 
}