content: package me.leolin.shortcutbadger.impl;
  
  import android.content.Context;
  import android.content.Intent;
  import me.leolin.shortcutbadger.ShortcutBadgeException;
  import me.leolin.shortcutbadger.ShortcutBadger;
  
  import java.util.Arrays;
  import java.util.List;
  
  /**
   * @author Gernot Pansy
   */
  public class AdwHomeBadger extends ShortcutBadger {
  
      public static final String INTENT_UPDATE_COUNTER = "org.adw.launcher.counter.SEND";
      public static final String PACKAGENAME = "PNAME";
      public static final String COUNT = "COUNT";
  
      public AdwHomeBadger(Context context) {
          super(context);
      }
  
      @Override
      protected void executeBadge(int badgeCount) throws ShortcutBadgeException {
  
          Intent intent = new Intent(INTENT_UPDATE_COUNTER);
          intent.putExtra(PACKAGENAME, getContextPackageName());
          intent.putExtra(COUNT, badgeCount);
          mContext.sendBroadcast(intent);
      }
  
      @Override
      public List<String> getSupportLaunchers() {
          return Arrays.asList(
                  "org.adw.launcher",
                  "org.adwfreak.launcher"
          );
      }
  }
  