B4X FEED API 31 FLAG_MUTABLE problem with Core.Intent object - November 1 deadline

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: API 31 FLAG_MUTABLE problem with Core.Intent object - November 1 deadline است. این موضوع تا کنون 25 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع API 31 FLAG_MUTABLE problem with Core.Intent object - November 1 deadline
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
25
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
I am way over my paygrade with this...

I currently use the Core.Intent object to provide media sharing capabilities in my app.

If I set [android:targetSdkVersion="31"] in the manifest I get the dreaded error message:
Caused by: java.lang.IllegalArgumentException: treetops.app.customer: 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.
Click to expand...

Scratching around the B4A forum I see that Erel has already fixed a similar issue in the [NB6.b4xlib] library.

I tried to work out how to jury-rig my code by imitating(???) what he did in this library - with no success.

I have come to the conclusion that some fiddling in the Core.Intent code needs to be done that is way beyond me.

According to the Google Developer website...



 

عقب
بالا