IN my first activity I have this code (that is a onCLick event of a Button):
  public void uno(View v)
   {
    Partita p = new Partita();
    p.cont = 1;
    p.puntiCategoriaG1 = 20;
    p.puntiCategoriaPC = 15;
    Intent i = new Intent(this, Partita.class);
    startActivity(i);
    finish();
  }
And in the second class/activity I set them:
public class Partita extends Activity {
   public int cont;
   public int puntiCategoriaG1;
   public int puntiCategoriaPC;
   @Override
   public void onCreate(....
But when I go to use them in the code the have the value 0. How can I solve?
 
     
     
     
     
    