what is the use of Activate Activity??
it is used to activate window or focus on specific window where you have use activate window inside it.
When you are working with multiple windows of same application. Activate activity would help you to bring the page or element you are working with to the foreground. This avoids the action being performed on the wrong element.