Android Question Problem with ShortcutBadger

polo

Member
Licensed User
Longtime User
Hello everyone,
I used the ShortcutBadger library, it works well on Android 6.0 but not on Android 7.0 on Samsung phones.
When changing the number with applyCount () the badge of the icon is not changed.
A solution ?
Thanks for your help.
 

DonManfred

Expert
Licensed User
Longtime User
but not on Android 7.0 on Samsung phones
It does work here without problem. On Android 7.01 using TargetSDK 25

WhatsApp Image 2017-12-08 at 16.27.13.jpeg
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Does not work here:
Samsung Galaxy S6, Android 7.0
TargetSDK 25 and TargetSDK 27
I tested this program ShortcutBadger Check Tool suggested in the Github page of the original library, which works OK.

upload_2017-12-8_18-8-18.png


I tested BadgeTest also with one of my icons.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Samsung Galaxy S6, Android 7.0
S7 EDGE here (working)
in the Github page of the original library
i saw it is a newer version than the one i wrapped... I lost the source of the lib a few months ago.

I rewrote it. Check again with V1.5 (based on the newest release from Github).

PD: Seems that there are now more Launcher supported.
 

Attachments

  • ShortcutBadgerV1.5.zip
    27.2 KB · Views: 404
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
I think i used a AbsObjectWrapper<object> in the past...

I now added the badger as private variable which is set when you initialize it without using AbsObjectWrapper

Additionally i added a property to indicate the object is initialized...
 

Attachments

  • ShortcutBadgerV1.51.zip
    27.3 KB · Views: 435
Upvote 0
Top