@Override
  protected void onResume() {
    // TODO Auto-generated method stub
    if (clients.size() > 0 && listclt.size() > 0) {
      myoffline = new Offlineimpl(getApplicationContext());
      List<Prospection> pros = new ArrayList<>();
      pros = myoffline.LoadProspection("");
      if (!CheckOutNet.isNetworkConnected(getApplicationContext())) {
        if (pros.size() > 0) {
          for (int i = 0; i < pros.size(); i++) {
            if (pros.get(i).getClient() == 1) {
              if (!listclt.contains(pros.get(i).getName())) {
                Client c =
                    new Client(
                        pros.get(i).getIdpros(),
                        pros.get(i).getName(),
                        pros.get(i).getZip(),
                        pros.get(i).getTown(),
                        pros.get(i).getEmail(),
                        pros.get(i).getPhone(),
                        pros.get(i).getAddress());
                clients.add(c);
                listclt.add(pros.get(i).getName());
                addItemsOnSpinner(clientspinner, 1);
              }
            }
          }
        }
      }
    }

    super.onResume();
  }
 public List<Promotion> chargerMyPromo(int cl, int pr) {
   /*
   if(isNetworkConnected(getApplicationContext()) && (myoffline.checkClient_is_Prospect(cl) == -1)){
   	return vendeurManager.getPromotions(cl,pr);
   }
   */
   return myoffline.getPromotions(cl, pr);
 }