My android app sends data to a servlet every 10 seconds. the servlet receives the very first request and responds back. but the servlet doesn’t receive the second set of data that the client sends after the next 10 seconds. could some one please tel me how do i go about doing this. is it something related to session?
Share
Http is not a persistent connection protocol. You should consider issuing one http request for each set of data you need to send.
If a persistent connection is mandatory (but I don’t really see what would force you to do that), you have to work with the TCP protocol… and you won’t be able to use a servlet on the server-side but a specific application listening to a specific TCP port.