[android-developers] Re: how to pass an Object from one activity to another.

2009-08-28 Thread sdphil

answering my own question - ack!  RTFM --
http://developer.android.com/guide/appendix/faq/framework.html#3

On Aug 28, 9:24 am, sdphil  wrote:
> I have an activity which implements an OnItemClickListener.
>
> in onItemClick() i start another activity --
>
>                 Intent intent = new Intent();
>                 intent.setClass(MyActivity1.this, MyActivity2.class);
>                 startActivity(intent);
>
> However, I need to pass some objects from MyActivity1 to MyActivity2
> --
>
> I see there is an Intent.putExtra() for all the basic types, and I
> even see a Bundle which is a collection of basic types, but how can I
> pass a generic "Object" to MyActivity2 ?
>
> tia.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to pass an Object from one activity to another.

2009-08-28 Thread Balwinder Kaur (T-Mobile USA)

http://developer.android.com/guide/appendix/faq/framework.html#3

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Aug 28, 9:24 am, sdphil  wrote:
> I have an activity which implements an OnItemClickListener.
>
> in onItemClick() i start another activity --
>
>                 Intent intent = new Intent();
>                 intent.setClass(MyActivity1.this, MyActivity2.class);
>                 startActivity(intent);
>
> However, I need to pass some objects from MyActivity1 to MyActivity2
> --
>
> I see there is an Intent.putExtra() for all the basic types, and I
> even see a Bundle which is a collection of basic types, but how can I
> pass a generic "Object" to MyActivity2 ?
>
> tia.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---