Crash in Android 12 regarding intent flag
Closed this issue · 0 comments
tirkarthi commented
Unable to start activity ComponentInfo{com.xtreak.notificationdictionary/com.xtreak.notificationdictionary.ProcessTextActivity}: java.lang.IllegalArgumentException: com.xtreak.notificationdictionary: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
Stack overflow : https://stackoverflow.com/questions/67045607/how-to-resolve-missing-pendingintent-mutability-flag-lint-warning-in-android-a