Skip to content

Instantly share code, notes, and snippets.

@nasrabadiAM
Created September 10, 2018 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nasrabadiAM/e37fffc8a08ad9df5081fa39b66b8602 to your computer and use it in GitHub Desktop.
Save nasrabadiAM/e37fffc8a08ad9df5081fa39b66b8602 to your computer and use it in GitHub Desktop.
//writing a Parcelable
intent.putExtra("person", new ParcelablePerson("Ali",22));
//reading a Parcelable
Bundle data = getIntent().getExtras();
ParcelablePerson person = (ParcelablePerson) data.getParcelable("person");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment