android / android/codelab-activity_transitionapi
TransitionsReceiver Intent extras is always null
- Dominant language
- Java
- Stars
- 24
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
I ran the `complete` debug variant of the app on Galaxy Z Flip 3 5G (Android 12) and Xiaomi Redmi K40 (Android 12). After walking for a 10 metres or so, `TransitionsReceiver.onReceive` was called. I assume it was walking activity detected. But `intent.getExtras()` was `null`. Hence, `ActivityTransitionResult.hasResult(intent)` returned `false`, and no information was printed.
I tried 31 and 32 for `targetSdkVersion` and `compileSdkVersion`
What is the issue?
Contributor guide
Research direction
Start by reproducing the report with the complete debug variant on the stated Android 12 devices, then inspect TransitionsReceiver.onReceive and the intent passed to it. Compare the received extras with ActivityTransitionResult.hasResult(intent) and the activity-transition setup used by the codelab. Done means identifying why the result is absent and documenting or implementing a verified resolution.
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
- 25/100