After 8 android, my application icon appears on the shortcuts.
I know that this was added specially to informing the user which app has created the shortcut.
Here is the code that is currently being used to create the icon.
ShortcutManager shortcutManager = (ShortcutManager) context.getSystemService(Context.SHORTCUT_SERVICE);
BitmapDrawable bd = (BitmapDrawable) ic;
if (shortcutManager.isRequestPinShortcutSupported()) {
Intent shortcutInfoIntent = new Intent(context, MainActivity.class);
shortcutInfoIntent.setAction(Intent.ACTION_VIEW);
shortcutInfoIntent.putExtra("pckg", pck);
ShortcutInfo info = new ShortcutInfo.Builder(context, "iconId")
.setIcon(Icon.createWithBitmap(bd.getBitmap()))
.setShortLabel(label)
.setIntent(shortcutInfoIntent)
.build();
PendingIntent shortcutCallbackIntent = PendingIntent.getBroadcast(context, 0, new Intent(context, MyReceiver.class), PendingIntent.FLAG_UPDATE_CURRENT);
shortcutManager.requestPinShortcut(info, shortcutCallbackIntent.getIntentSender());
}
I know that this is a fairly popular problem, but no one has provided a normal solution. But I need to take it away somehow
I'm sure that this is possible because it is implemented in x icon changer, where icons are created without these badges.
Please write all your ideas how to fix it
They use app widgets for that. See the "ABOUT THE WATERMARK" in the Play Store listing that you linked to.
Write an app widget.