Cut string into 3- to 4-foot-long sections. Tie string to the apple stems to hang them to the trees. Spread some newspaper sheets on an outdoor worktable or on the ground. Place the apples on the paper.
Spray the adhesive evenly over the apples, keeping clear of the strings. You need about eight apples for a standard sized tree. If you have a dwarf-sized tree that is less than 9-feet tall, you need two apples.
Lift apples by the string and hang one by one around the tree at various heights. Discard newspaper. The apple orbs will soon be covered with flies.
Replace the fly covered apples with new ones. The fruit flies are usually all gone by the time the fruit grows and matures on the tree.