Dear All,

I have multiple activities in my app that need to send data over a
socket.. I figured that service is the best way to handle this.. I
tried many different ways to achieve this but with no success.. If
anyone can share a simple example of how it can be done.. This is what
I am looking for..

@Override
onStart - open the socket for communication, open the input and output
streams..
onDestroy - close the streams and the socket..

my method..
public String onSendData(String abc) - to send and receive data from
the server socket.. this will be called from multiple activities which
I am still unable to figure out.. do I need to call bindService() in
every activity?

Is this the best way to do a socket communication? or is XML-RPC a
better bet..
I do not have a lot of background processing, it is as simple as
sending and receiving a few bytes of data..

Thanks in advance..
Ganesh

-- 
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