Having fruit flies in the kitchen can be such a pain. They can be especially bad in the summer months, because they like the heat and the humidity. But there is a way to prevent them from ever coming into the house in the first place.
When it comes to fruit flies, bananas are your worst enemy, because in the supermarket, fruit flies preferentially lay eggs on bananas. When you bring your bananas home, the flies hatch, and you have a problem.
The easy solution - rinse your bananas thoroughly when you bring them home from the store. Voila! No more pesky flies.