execute cron on android for launching an app every 5 minutes

I want to restart my app after the user has been inactive since 5min if it is possible, Or just every 5min.

How can i achieve that ? using cron ?