title: display counter notification in icon launcher android
body: <p>In my android application i want to display the count icon badge. i'm using the code from <a href="https://github.com/leolin310148/ShortcutBadger" rel="nofollow">enter link description here</a>.when i test it i always get this error. <code>unable the execute badge.shortcutbadger is currently not support the home launcher package"com.android.launcher"</code>. when i debug it i find that the application dosn't get correctly the package name. </p>
  
  <pre><code> Intent intent = new Intent(Intent.ACTION_MAIN);
      intent.addCategory(Intent.CATEGORY_HOME);
      ResolveInfo resolveInfo = getPackageManager().resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY);
      String currentHomePackage = resolveInfo.activityInfo.packageName;
     //String currentHomePackage = "me.leolin.shortcutbadger.example.MainActivity";
      TextView textViewHomePackage = (TextView) findViewById(R.id.textViewHomePackage);
      textViewHomePackage.setText("launcher:" + currentHomePackage);
  </code></pre>
  
  <p>so i put it manually but i always get the same message error with the correct package name.</p>