I want to pass a parcelable object to an activity to another one. So I implemented a parcelable class to accomplish this. And I coded:
Intent intent = new Intent(mainactivity.this, SecondActivity.class);
Object[] object = new Object();
intent.putExtra("Object ", object);
startActivity(intent);
and in the second activity I coded:
Object[] object = (Object[]) getIntent().getExtras().getParcelable("object");
When I pass the object to Intent, it's not null. While, when I get it in the second Activity is null. Do you have any suggestions? Thanks in advance!