title: Android Badge number on launcher icon for all mobile manufacturer
body: <p>I need a badge counter on my application launcher icon.</p>
  
  <p>I know the solution to get Badge counter inside the app, using TextView, But I need a solution to get the badge counter external to the app on the launcher icon.</p>
  
  <hr>
  
  <p>In iOS we get the badge number count by</p>
  
  <pre><code>UIApplication.sharedApplication().applicationIconBadgeNumber
  </code></pre>
  
  <p>I am wondering why Android has not included anything like this with their SDK which every developer need.</p>
  
  <hr>
  
  <p>Try 1 : Working only on sony mobiiles :</p>
  
  <pre><code>    Intent badgeIntent = new Intent();
      badgeIntent.setAction("com.sonyericsson.home.action.UPDATE_BADGE");
      badgeIntent.putExtra("com.sonyericsson.home.intent.extra.badge.PACKAGE_NAME", this.getPackageName());
      badgeIntent.putExtra("com.sonyericsson.home.intent.extra.badge.ACTIVITY_NAME", this.getClass().getName());
      badgeIntent.putExtra("com.sonyericsson.home.intent.extra.badge.SHOW_MESSAGE", ShwMsgBulVar);
      badgeIntent.putExtra("com.sonyericsson.home.intent.extra.badge.MESSAGE", "10");
  
       context.sendBroadcast(badgeIntent);
  </code></pre>
  
  <hr>
  
  <p>Try 2 : 
  I tried the library :
  <a href="https://github.com/leolin310148/ShortcutBadger" rel="noreferrer">https://github.com/leolin310148/ShortcutBadger</a></p>
  
  <p>It works only for few manufacturers and not common for all android mobiles.</p>
  
  <p>ShortCutBadger is not working on OPPO, VIVO, Xiomi, Reliance LYF default launchers.</p>
  
  <p>After couple of research, I came to know that, badge number depends on launcher manufacturer and listed as below :</p>
  
  <blockquote>
    <p>ShortCutBadger Suported :</p>
  </blockquote>
  
  <ul>
  <li>Samsung : "com.sec.android.app.launcher"</li>
  <li>Sony : "com.sonyericsson.home"</li>
  <li>HTC : "com.htc.launcher"</li>
  <li>Asus : "com.asus.launcher"</li>
  </ul>
  
  <blockquote>
    <p>ShortCutBadger not Suported :</p>
  </blockquote>
  
  <ul>
  <li>Oppo :"com.oppo.launcher"</li>
  <li>Xiomi : "com.miui.home"</li>
  <li>Vivo : "com.bbk.launcher2"</li>
  <li>Lyf : "com.android.launcher3"</li>
  <li>Go Launcher : "com.gau.go.launcherex"</li>
  </ul>
  
  <hr>
  
  <p>So is there any other general method which can work on all manufacturer mobiles?</p>
  
  <p>Read so many posts and did lot of search but Many tell there is no such generic solution which is applicable for all launchers.<br>
  But I feel there is a solution because whatsapp and facebook app display the badge number in all the above mentioned launcher.</p>