Android 在应用图标上设置未读消息数量(1)

  • SAMSUNG 支持

  • MEIZU 不支持

  • google 8.0开始支持 显示一个点,长按点弹出数字

  • 其他杂牌机不支持


  • English:

    • Developed separately for the domestically supported Launcher, the support is:
  • * ** Common models and support

  • * *** Huawei Support

  • * Xiaomi Support

  • * OPPO can support but need to apply

  • * VIVO does not support

  • * SAMSUNG support

  • * MEIZU does not support

  • * google 8.0 starts to support display a point, long press the point to pop up the number

  • * Other brands are not supported

*/

public class DesktopCornerUtil {

/**

  • 华为手机launcher主题

  • Huawei mobile phone launcher theme

*/

private static final String HUWEI_LAUNCHERNAME = “com.huawei.android.launcher”;

/**

  • 小米手机launcher主题

  • MIUI phone launcher theme

*/

private static final String MIUI_LAUNCHERNAME = “com.miui.home”;

/**

  • 摩托罗拉和宏达手机launcher主题

  • Motorola and HTC mobile phone launcher theme

*/

private static final String MOTOANDHTC_LAUNCHERNAME = " com.android.launcher";

/**

  • 三星手机launcher主题

  • Samsung mobile phone launcher theme

*/

private static final String SAMSUNG_LAUNCHERNAME = “com.sec.android.app.launcher”;

/**

  • google 手机launcher主题

  • Google phone launcher theme

*/

private static final String GOOGLE_LAUNCHERNAME = “com.google.android.apps.nexuslauncher”;

private volatile static DesktopCornerUtil desktopCornerUtil;

/**

  • vivo手机厂商名字

  • Vivo mobile phone manufacturer name

*/

private static final String VIVO_MANUFACTURER_NAME = “vivo”;

/**

  • OPPO 手机厂商名字

    </
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值