~{間|あいだ}/~{間|あいだ}に
{間|あいだ}: during the whole time …; {間|あいだ}に: at some point during …
N3
V-dictionary / V-ている + {間|あいだ}(に) / i-adj + {間|あいだ}(に) / na-adj + な + {間|あいだ}(に) / N + の + {間|あいだ}(に)
~{間|あいだ} means a state or action continues for the whole period, so the main clause has a continuous verb such as ~ていた or ずっと~. ~{間|あいだ}に means that within that period something happens or is done at one point. Learners mix them up: '{休|やす}みの{間|あいだ}、ずっと{寝|ね}ていた' (all through the holiday) differs from '{休|やす}みの{間|あいだ}に{引|ひ}っ{越|こ}した' (moved at some point during the holiday). Compared with ~うちに, {間|あいだ}に is a neutral time span with no 'before it changes' nuance.
Examples
夏休みの間、ずっと工場でアルバイトをしていました。
I worked part-time at a factory all through the summer holidays.
利用者さんが寝ている間に、部屋の掃除をします。
I clean the room while the resident is asleep.
留守の間に、荷物が届いていました。
A parcel arrived while I was out.
Exercises
1.電車に乗っている 、ずっと日本語の音声を聞いていた。
2.休憩の 、家族に電話をかけた。