Make your phone or tablet smarter with automation

Get it on Google Play

App usage

An action block that gets usage statistics for an app, or all apps, within an interval.

The fiber will proceed immediately without pause.

This block gets the app usage statistics as recorded and stored by Android. The usage statistics is aggregated into days, weeks, months, and years. The minimum timestamp and maximum timestamp are used to determine the best fitting interval.

Note! This feature requires Android 5+.

Input arguments

  • Minimum timestampunix timestamp of the earliest usage statistics to get, default is first recorded usage.
  • Maximum timestampunix timestamp of the latest usage statistics to get, default is current time.
  • Package — package name of the app to get usage statistics for, default is for all apps.
  • Statistic — type of usage statistic to output, default is Foreground.

Output variables

  • Usage duration — variable to assign the total duration in the statistic state.
  • Last used — variable to assign the last time in the statistic state, as a unix timestamp.
Note! This documentation is also accessible within the app from Help & feedback menu.