While the preterite is used to talk about one-offs, the imperfect is for stuff that happened ... television when my friend arrived) is a good example of the difference between the two tenses.