how to listen continuosly for instream or outstrem in sockets
I am making a chat application in android using TCP and has immplement开发者_StackOverflowed Sockets. Which is working but in case of receiving or sending only the first msg is considered. eg. client:hi server:hi server:hows u?
so in this case hows u? is not accessible at client / server side. In both cases instream is closed after receiving once. Can any One suggest what could be the issues or how i can solve them???
If it is not listening for server continuously, then there might be a problem with your code. Post your code.
Check if this fits your requirement. Android chat functionality?
精彩评论