Check out the Android FAQ

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

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·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 7, 1:28 pm, fhucho <fhu...@gmail.com> wrote:
> Hi,
> I am developing an app that connects to a server. For that connection
> I created a class Client that maintains info about the connection . My
> app consists of several Activities and each of that Activity needs
> access to the Client object to communicate to the server.
>
> 1) Can I put somewhere the Client object so that all Acitvities have
> an access to it?
> 2) If not I would probably need to pass the object to each Activity
> via Intent.putExtra(). But putExtra does't accept Object as an
> argument. It only accepts several types like int, long, String etc. So
> how can I pass an object to another Activity?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to