How do you do this: To resolve a fruit fly problem.
Put some fruit or honey in a cup and cover it with plastic wrap. Poke a few holes on top. The flies will get trapped inside.