After 2 minute inactivity redirect to homepage

I want to make an Android App for 43" kiosk.
This app will have Home page with Eight button, and every button click It will open an Image, then, after 2 minute inactivity, It should open the homepage.
Is it possible by appgyver?