Friday, September 28, 2012

Re: [android-developers] Share DataStream between activities

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 <telmoneves90@gmail.com> 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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment