Exemplo n.º 1
0
 public void myHandler(View v) {
   CheckBox cb = (CheckBox) v;
   Magazine leMagazine = (Magazine) cb.getTag();
   long id = leMagazine.getId();
   //            int position = Integer.parseInt(cb.getTag(2).toString());
   if (cb.isChecked()) {
     lesIdMagazines.add(id);
   } else {
     lesIdMagazines.remove(id);
   }
 }
Exemplo n.º 2
0
  public void onClickNom(Magazine item, int position) {

    Log.i("magazine", item.toString());
    Intent uneIntent = new Intent(this, NumerosActivity.class).putExtra("idMagazine", item.getId());
    this.startActivity(uneIntent);
  }