function for generate and export the manager of activity