Passing realmobject with parcel to activity has return null <p>can anyone help me with my problem with passing realmobject with parcel to another activity and in second activity my object is null? </p> <p>In Activity i get instatne of class Category from tag. </p> <pre><code> Intent intent = new Intent(context, CategoryListActivity.class); Category category = (Category)v.getTag(); Log.e("Id", " "+category.getId()); //this is ok it prints 1 Parcelable parcelable = Parcels.wrap(category); intent.putExtra("category", parcelable); startActivity(intent); </code></pre> <p>And in class CategoryListActivity v method onCreate is code </p> <pre><code>Intent intent = getIntent(); Category category = Parcels.unwrap(intent.getParcelableExtra("category")); Category category1= Parcels.unwrap(getIntent().getExtras().getParcelable("category")); Log.e("Id 1", " "+category.getId()); //retun 0 Log.e("Id 1", " "+category1.getId()); //return 0 </code></pre> <p>And this print 0 and i rly dont know why is 0. Can anyone has some suggestion to resolve this? thx, or if its necessery insert my Entity which extend RealmObject i can paste </p>