Passing enum or object through an intent (the best solution)
Posted
by jax
on Stack Overflow
See other posts from Stack Overflow
or by jax
Published on 2010-05-14T17:32:51Z
Indexed on
2010/05/14
17:34 UTC
Read the original article
Hit count: 121
android
I have an activity that when started needs access to two different ArrayLists. Both Lists are different Objects I have created myself.
Basically I need a way to pass these objects to the activity from an Intent. I can use addExtras() but this requires a Parceable compatible class. I could make my classes to be passed serializable but as I understand this slows down the program.
What are my options?
Can I pass an Enum?
As an an aside: is there a way to pass parameters to an Activity Constructor from an Intent?
© Stack Overflow or respective owner