Fruit Flies can sense other types of food too, like grains or vegetables. Also its very important to note that fruit flies do not only breed on fruit. Any sugary substance or even your rubbish bins can be perfect places for fruit flies. More information can be found here: http://www.thebugsquad.com/fruit-flies/how-to-get-rid-of-fruit-flies