private File getNextFileForEvent ( File dir , Calendar timestamp , int counter ) { long timestampInMillis = timestamp . getTimeInMillis ( ) ; String name = Long . toString ( timestampInMillis ) ; return new File ( dir , name + "." + counter ) ; }
Gets the file to use for a new event in the given collection with the given timestamp using the provided counter .