On Thu, Nov 25, 2010 at 9:55 AM, pedr0 <[email protected]> wrote:

> I read some tutorial about the object of this topic (Passing object via
> intent) there tutorial said that there are two way:
>
> 1) My object must implement Parcelable Interface
>
> 2) I have to move my object  static, for share data between activities.
>

A 3rd way that I prefer: make your object "bundleable", where it can put
it's relevant data into a Bundle and re-construct itself from a Bundle,
which you put in the intent. This eliminates the complexity and
class-loading issues of Parcelable and the common issues with statics.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to