Yes I saw that and the use of Parcelable seems like overkill just to
pass an arbitrary data type in an Intent. Wonder if anyone knows why
the Android Framework does not support putExtra on an arbitrary data
type that can be cast into something like an Object?

On Jan 21, 3:27 pm, Walt Armour <waltarm...@gmail.com> wrote:
> Look at Intent.putExtra(String, Parcelable).  You will need to make your
> object implement Parcelable.
>
> On Thu, Jan 21, 2010 at 12:45, oregonduckman <oregonduck...@gmail.com>wrote:
>
>
>
> > Looking for a way to pass an arbitrary data type to a sub-activity.
> > Seems like Intents are missing something like intent.putExtra(String
> > name, Object object) or bundle.putObject(String name,Object object)
> > where object can be any type (such as List<MyClass>). L
>
> > I looked at all the type that can be pass via a Bundle or Intent and
> > did not see any method that supports arbitrary data types.
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
>
> > NEW! Try asking and tagging your question on Stack Overflow at
> >http://stackoverflow.com/questions/tagged/android
>
> > To unsubscribe from this group, send email to
> > android-beginners+unsubscr...@googlegroups.com<android-beginners%2Bunsubscr 
> > i...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to