how to detect if user idle on mobile phone ?

how to detect if user idle on mobile phone ?

  

Hi,


how to detect if user is idle on mobile phone ?

thanks.

Hi Tobit,

What do you consider an idle (mobile) user?

Hi Joao, like no action in 3 minutes or when user press home button and not back in 3 minutes.