private String getAppLocation(File currentFile) {
        String filePath = currentFile.getAbsolutePath();

        // Strip off any .xml bits before doing any further manipulation
        if (filePath.endsWith(".xml")) {
            filePath = filePath.substring(0, filePath.length() - 4);
        }
        return filePath;
    }
private String getAppLocation ( File currentFile ) { String filePath = currentFile . getAbsolutePath ( ) ; if ( filePath . endsWith ( ".xml" ) ) { filePath = filePath . substring ( 0 , filePath . length ( ) - 4 ) ; } return filePath ; }
@param currentFile
@return