We also had a fruit fly invasion one time, and it is so difficult to get rid of them. Cleaning and keeping all food in the refrigerator does not work! We made a similar trap, but covered a glass with plastic wrap and poked a couple holes in it. It worked!
That also sounds like a good trap! Probably even easier to make.