There are two ways to do this: You can stuff the stream in the global application context,
*or*, you can use a background service to manage the connection and interface with the connection in your activities. kris On Fri, Sep 28, 2012 at 9:40 PM, Telmo Neves <[email protected]> wrote: > Hi everybody > > I need to pass a dataOutputStream and DataInputStream between activities in > my app so i can have communication between app and server always i need > > How i can do this ? Is it possible without need a new socket? > > Thanks > > -- > 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 -- 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

