private void setCheckPackage(boolean checked) {
   if (lstSticker != null && lstSticker.size() > 0) {
     for (Sticker sticker : lstSticker) {
       sticker.setIsChecked(checked);
     }
     if (adapter != null) adapter.setData(lstSticker);
   }
 }
  private void handleSocialSet() {
    lstPackage = new ArrayList<String>();
    for (Sticker sticker : adapter.getSticker()) {

      if (sticker.getIsChecked()) {
        lstPackage.add(sticker.getPackageName());
        try {
          List<Sender> lstSender =
              Sender.find(Sender.class, "Package_Name=?", sticker.getPackageName());

          if (lstSender != null && lstSender.size() > 0) {
            Log.e("update", sticker.getAppName());
            Sender sender = lstSender.get(0);
            sender.imagePath = localPath;
            sender.save();
          } else {
            Log.e("new", sticker.getAppName());
            Sender sender = new Sender();
            sender.imagePath = localPath;
            sender.packageName = sticker.getPackageName();
            sender.contactNumber = sticker.getAppName();
            sender.isSocial = true;
            sender.save();
          }

        } catch (Exception e) {

        }
      }
    }

    if (lstPackage != null && lstPackage.size() > 0) {
      Intent intent = new Intent(this, AnimationActivity.class);
      intent.putStringArrayListExtra("packages", lstPackage);
      intent.putExtra("isSocial", true);
      intent.putExtra("path", localPath);
      startActivity(intent);
    }
  }