How to use server sent events (SSE) in android client application? Is there a java library for that?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I use eventsource-java library. It's works perfectly on android.
upd Another library seems better. Usage: gist
回答2:
I am not sure but you can always try, capture your sse using javascript and as android have support for html5 it will work.
Refer this: http://developer.android.com/guide/webapps/webview.html