In this exercise, we are going to implement sending and receiving messages by using HTTP calls as well as downstream messaging and receiving messages via a BroadcastReceiver. As we already have our database set up and our friends are stored in it, we can send offline messages – we can type them whenever we want and they will be sent once the device goes online. For that, we can register another BroadcastReceiver, but this time it will be listening to a different type of an event – connection status. Once BroadcastReceiver receives online connection event, it will start a service that will retrieve all unsent messages and send them over.
免費玩Zina - checkpoint 7 APP玩免費
免費玩Zina - checkpoint 7 App
熱門國家 | 系統支援 | 版本 | 費用 | APP評分 | 上架日期 | 更新日期 |
---|---|---|---|---|---|---|
未知 | Android Google Play | 1.0 App下載 | 免費 | 1970-01-01 | 2015-03-12 |