繁体   English   中英

Android-解析XML时如何获取推送通知?

[英]Android - How to get a push notification when parsing a xml?

我有一个解析此xml的应用程序:

 <rss version="2.0">
 <channel>
 <title>Desire ICS by Sandvold</title>
 <description>Receive notifications for new releases</description>
 <link>http://www.sandvold.as</link>
 <item>
 <title>Beta 0.1</title>
 <description>
 Cleaned up the build (seems faster) Moved back to tristans kernel -better speed and battery hopefully) Fixed sound issue Removed Darktremor apps2sd (flash it if you want) Added bootanimation Removed apps that gave errors under update Fixed wifi problems for some
 </description>
 <link>http://www.sandvold.as/Downloads/default.html</link>
 </item>
 </channel>
 </rss>

但是,有新文章时如何获得新通知? 希望您能理解我,希望对您有所帮助。 毛线类

正如@Mellocandle所建议的那样, C2DM是将消息从服​​务器“推送”到设备所需的方法:

Android云到设备消息传递(C2DM)是一项服务,可帮助开发人员将数据从服务器发送到Android设备上的应用程序。

替代方法是让您的应用向服务器发出请求,以查看是否有更新。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM