Pushing Data to Application

时间:2015-06-04 08:22:52

标签: android push

I am new to developing android application. I need some guide as to how can I push a update to my application from my server. I want it to work something like Twitter where I can push a update of text and pictures to my application with a standard display format. Need some guide to how can I get this started.

I have seen through tutorials on push notification but that is not what I wanted. I want to be able to display the text on the received notification into my application.

Thanks

1 个答案:

答案 0 :(得分:1)

您可以使用websocket将数据从服务器推送到应用程序。

您的应用程序应该打开与服务器的websocket连接。然后可以在应用程序和服务器之间进行双向通信。

示例java websocket客户端可以在下面找到链接。 https://github.com/TooTallNate/Java-WebSocket