Serializable has higher overhead than Android's similar built-in
interface, Parcelable. Try using Parcelable if possible, and consider
support for Java serialization a fall-back (for compatibility with
legacy and library code).
-- Kostya
28.01.2011 14:44, maccoy пишет:
why not class implementes Serializable
myBundle.putSerializable(
and get the class back??
is there a performance issue?
On Dec 30 2010, 5:21 pm, TreKing<[email protected]> wrote:
On Thu, Dec 30, 2010 at 3:36 AM, maomaostevencao<
[email protected]> wrote:
What you have said is the common way to pass arguments to an activity.
Right.
But my question is about how to pass an object of user defined class to an
activity.
Passing a user defined object to an Activity is not much different than
passing, say, an int. Re-read this thread - that's exactly what was
discussed.
One guy said that it could be done by implementing some common functions
for this activity and calling those functions to pass object to this
activity, but how I can get the activity reference would be a problem.
If you're referring to Neilz's post, the second part of that was that he
uses static objects - no need to pass an Activity reference around. Each
Activity, when active, would use itself to access the user-defined static
objects.
-------------------------------------------------------------------------------------------------
TreKing<http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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