android / android/codelab-activity_transitionapi

The Transition API is working fine on Galaxy S9 but got false positives on Pixel 5

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
24
Forks
9
PR merge metrics
No merged PRs in 30d

Description

I'm using the Transition API in a foreground service (by showing an ongoing notification) to constantly detect the user's physical activity transitions. It worked pretty well on Galaxy S9. However, when I tested the app on Pixel 5, I got multiple transitions from STILL to WALKING and WALKING to STILL even though the user was just picking up their phone and putting it back down. I was wondering if anyone encountered a similar issue. Thanks!

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Transition API usage in the codelab and reproduce the STILL/WALKING transitions on a Pixel 5 with the foreground service and ongoing notification described here. Compare the results with a Galaxy S9 and check the Android activity-transition documentation for device-specific behavior; done requires a confirmed cause or a documented, reproducible limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.