public static final String removeDataFolderPath(String fullPath){
  File sdCard=Environment.getExternalStorageDirectory();
  String dataFolderPath=sdCard.getAbsolutePath() + "/" + MainApp.getDataFolder()+ "/";
  if (fullPath.indexOf(dataFolderPath) == 0) {
    return fullPath.substring(dataFolderPath.length());
  }
  return fullPath;
}

public static final String removeDataFolderPath ( String fullPath ) { File sdCard = Environment . getExternalStorageDirectory ( ) ; String dataFolderPath = sdCard . getAbsolutePath ( ) + "/" + MainApp . getDataFolder ( ) + "/" ; if ( fullPath . indexOf ( dataFolderPath ) == 0 ) { return fullPath . substring ( dataFolderPath . length ( ) ) ; } return fullPath ; }
takes a full path to owncloud file and removes beginning which is path to ownload data folder . if fullpath does not start with that folder , fullpath is returned as is .
