android / android/codelab-activity_transitionapi

android 12 specifying mutability flag

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

Description

in https://developer.android.com/codelabs/activity-recognition-transition#5
you should not pass 0 for the flags rather the pending intent needs tp specify the mutability flag.
mActivityTransitionsPendingIntent =
PendingIntent.getBroadcast(MainActivity.this, 0, intent, 0);

Contributor guide

Open the contributing guide

Research direction

Start with the linked activity-recognition codelab step and the PendingIntent.getBroadcast call shown in the issue. Check the Android 12 PendingIntent mutability requirement, then update the flags so the codelab no longer passes 0.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.