In Android development, we often come across requirements relating to refreshing a View periodically. For example, a timer…