On Thu, May 20, 2010 at 2:08 AM, sunita <[email protected]>wrote:

> Please give me suggestions for this problem.


Post the relevant code that's not working.

On Thu, May 20, 2010 at 2:18 AM, Tommy <[email protected]> wrote:

> Why not save the object to a global variable and access it in your
> next activity?
>

Because this is hack that goes against the Android way of data and message
passing and will lead to problems - like if you press Home after going to
the second activity, get booted from memory, and come back to that activity.
Your static data will be null and your second activity will die a horrible
death.

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

-- 
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