http://developer.android.com/reference/android/content/Context.html#getApplicationContext()

kris

On Sat, Sep 29, 2012 at 8:01 AM, Telmo Neves <telmoneve...@gmail.com> wrote:
> thanks I will try it ... anyway how can i acess the context from
> another activity?
>
> 2012/9/29 Kristopher Micinski <krismicin...@gmail.com>:
>> 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 <telmoneve...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to