New to android. More of a python contributor here on stack. So.
I am aware of how to pass native data via intent
i.e.:
Intent intent = new Intent(getBaseContext(), NextActivity.class);
intent.putExtra("PersonName", "Joe");
intent.putExtra("PersonId", "200");
startActivity(intent);
I am getting to the point where I have to pass more than just 2 attributes (say 3) between activities. This may be more tedious
I am also aware of Parcelable
Intent intent = new Intent(getBaseContext(), NextActivity.class);
Person person = new Person(); // class that implements parcelable
intent.putExtra("person", person);
startActivity(intent);
I am also aware that performance wise, Parcelable is superior to Serializing via this awesome thread Android: Difference between Parcelable and Serializable?
My android app has a growing performance concern. (I have a long running socket service and also uploading / downloading images in the background at times) so would like to performance gains where I can. Is there a considerable performance difference here if any? Is it good practice to implement parcelable at a certain point, say if I'm passing 10 key-values as opposed to 3