How to delay onServiceConnected call
I'm implementing Service that establishes TCP connection with server and
then allows clients to pass messages through this connection. Clients
connect to service with bindService call. As a result onServiceConnected
called in clients ServiceConnection object. The problem is that
onServiceConnected called right after return from bindService, but my
Service was not established connection with server at this moment. Can I
somehow delay onServiceConnected call while connection was not
established? If it is not possible please suggest some good pattern for my
case. Thank you.
No comments:
Post a Comment