I have problem with starting new Activity in my app.In shorthand it will be app of sound effects(animals,people,fun...)

In my MainActivity there is button with onClick method

```
    public void clic(View v) {
       Intent newIntent=new Intent(this,AktivityImage.class);
       newIntent.putExtra("id", aFactory.getAnimals());
       startActivity(newIntent);
}

```

Method aFactory.getAnimals() returns array of my own class:

```
    public Entit[] getAnimals(){
      return aArrayAnimals;
}

```

Class Entit is primitive, just constructor and 2 getters.

```
import java.io.Serializable;

public class Entit implements Serializable{

private int aSound;
private int aImage;

public Entit(int paIdImage,int paIdSound){

    aImage=paIdImage;
    aSound=paIdSound;
}

public int getImage(){
    return aImage;
}

public int getSound(){
    return aSound;
}

```

}

And there is a problem, in class AktivityImage

```
    private Entit[] aEntity;

    protected void onCreate(Bundle savedInstanceState) {

      super.onCreate(savedInstanceState);
      setContentView(R.layout.sounds_layout);

      aIntent=this.getIntent();
      aEntity=(Entit[]) aIntent.getSerializableExtra("id");

```

Some tips? Thanks to all.