Code example for ParcelFileDescriptor

Methods: close

0
    } 
 
    protected void closeAccessory() { 
	try { 
	    if (fileDescriptor != null) {
		fileDescriptor.close();
	    } 
	} catch (IOException e) {
	} finally { 
	    fileDescriptor = null;
	    mAccessory = null;
	} 
 
    } 
 
    @Override 
    protected void onResume() { 
	Intent intent = getIntent();
	if (input != null && output != null) {
	    return; 
	}