[android-developers] Sharing a stream object between activities of a tab view
Hi, i want to share streams of a socket connection between the
activities of a tab view. In particular the tab activity creates the
socket and gets the i/o streams,so i want that tabbed activities use
these streams to retrieve informations without reconnect to the server
each time i switch from a tab to another. I know i can use the
application class to have a global state, but i don't know how. Can
you give me sole tips about this, or post some code snippets, or
suggest to me some other solutions? Thanks a lot.
--
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

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home