You should register the FilesClient with the Lifecycle object and do this in a start() method there instead.