Sampling Coverage of Activity on Android 10

In a previous post, we investigated the sampling coverage on a Samsung Galaxy S10e Android version 10, SDK level 29. The goal was to investigate if the location measure (and other related measures) were collected while the app was in the background.

A question came up; does it work for activity recognition also – i.e. for the activity measure? The answer is yes. As shown in the figure below, activity is recognised and reported during a full day of use (07:00 to 19:00).

Fig. 2 – Sampling coverage for Android 10, SDK level 29. Numbers in cells indicate sampling coverage; 1 indicates 100% coverage, i.e. that all expected data points were collected. 

Since activity recognition is event-based, there is no “ground truth”, and the coverage rate (0..1) is hence irrelevant for the activity measure. However, looking into the data, we see that activities are recognised. For example, during 07:00-09:00 a lot of walking and biking is taking place, and similarly during 16:00-17:00. This pretty much reflects the day of the test subject 🙂 .

So – in conclusion; activity recognition seems to run also when the app is in the background.

Leave a Reply

Your email address will not be published. Required fields are marked *