code: @Override
      protected void onListItemClick(ListView l, View v, int position, long id) {
          Product selectedItem = adapter.getItem(position);
  
          Intent res = new Intent();
          res.putExtra(RES_SELECTED_PRODUCT, selectedItem);
          setResult(Activity.RESULT_OK, res);
          finish();
      }
docs: ==