Nutrient conditions affect the reproductive potential and lifespan of many organisms through the insulin signaling pathway. Although this is well characterized in female oogenesis, nutrient-dependent regulation of fertility/fecundity in males is not known. Seminal fluid components synthesized in the accessory gland are required for high fecundity in Drosophila males. The accessory gland is composed of two types of binucleated cells: a main cell and a secondary cell (SC). The transcription factors Defective proventriculus (Dve) and Abdominal-B (Abd-B) are strongly expressed in adult SCs, whose functions are essential for male fecundity. We found that gene expression of both Dve and Abd-B was down-regulated under nutrient-poor conditions. In addition, nutrient conditions during the pupal stage affected the size and number of SCs. These morphological changes clearly correlated with fecundity, suggesting that SCs act as nutrient sensors. Here, we provide evidence that Dve associates nutrient conditions with optimal reproductive potential in a target of rapamycin signaling-dependent manner.