Created
September 10, 2018 08:09
-
-
Save nasrabadiAM/e37fffc8a08ad9df5081fa39b66b8602 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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