In any gamogenetic species, attraction between individuals of the opposite sex promotes reproductive success that guarantees their thriving. Consequently, mate determination between two sexes is effortless for an animal. However, choosing a spouse from numerous attractive partners of the opposite sex needs deliberation. In Drosophila melanogaster, both younger virgin females and older ones are equally liked options to males; nevertheless, when given options, males prefer younger females to older ones. Non-volatile cuticular hydrocarbons, considered as major pheromones in Drosophila, constitute females' sexual attraction that act through males' gustatory receptors (Grs) to elicit male courtship. To date, only a few putative Grs are known to play roles in male courtship. Here we report that loss of Gr33a function or abrogating the activity of Gr33a neurons does not disrupt male-female courtship, but eliminates males' preference for younger mates. Furthermore, ectopic expression of human amyloid precursor protein (APP) in Gr33a neurons abolishes males' preference behavior. Such function of APP is mediated by the transcription factor forkhead box O (dFoxO). These results not only provide mechanistic insights into Drosophila male courtship preference, but also establish a novel Drosophila model for Alzheimer's disease (AD).