简体   繁体   English

使用待定意图的通知

[英]Notification using pending intent

I am uploading the photos asynchronously from the device. 我正在从设备异步上传照片。 As I am uploading asynchronously, I want to notify user when the asynchronous upload has been completed. 当我异步上传时,我想在异步上传完成时通知用户。 I am able to upload the photos asynchronously, but i am not able to notify the user. 我可以异步上传照片,但无法通知用户。 How this can be achieved using pending intents and broadcast receivers ? 如何使用未决的意图和广播接收器来实现此目的?

In PendingIntent you can use different request code to notify the user when each picture is uploaded, else use same request code for notifying when the picture uploading is completed. PendingIntent您可以使用不同的请求代码来通知用户何时上传每张图片,否则可以使用相同的请求代码来通知图片何时完成上传。

refer this link : Pending Intent Notification Problem 请参阅此链接: 待处理的意向通知问题

Hope it will be useful... 希望它会有用...

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

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