改造2 - 如何避免重复的帖子

时间:2017-03-09 12:05:05

标签: android retrofit retrofit2

我正在使用改装2来上传图片,而且由于用户多次点击上传按钮,我得到了太多重复的图片。

禁用按钮不是我案例的解决方案,因为用户可以关闭活动并重新打开它。

如何在开始上传请求之前知道是否有正在运行的请求。 第二个问题是如何在重新创建活动后获得运行上传的进度?

...
(ice/INFO) ICE(PC:1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5))/STREAM(0-1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5) aLevel=0)/COMP(1): Consent refreshed

(stun/INFO) Unrecognized attribute: 0xc057
(stun/INFO) Unrecognized attribute: 0xc057
(stun/INFO) STUN-CLIENT(consent): Received response; processing
(ice/INFO) ICE(PC:1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5))/STREAM(0-1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5) aLevel=0)/COMP(1): Consent refreshed

(stun/INFO) Unrecognized attribute: 0xc057
(stun/INFO) Unrecognized attribute: 0xc057
(stun/INFO) STUN-CLIENT(consent): Received response; processing
(ice/INFO) ICE(PC:1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5))/STREAM(0-1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5) aLevel=0)/COMP(1): Consent refreshed

(stun/INFO) Unrecognized attribute: 0xc057
(stun/INFO) Unrecognized attribute: 0xc057
(stun/INFO) STUN-CLIENT(consent): Received response; processing
(ice/INFO) ICE(PC:1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5))/STREAM(0-1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5) aLevel=0)/COMP(1): Consent refreshed

(stun/INFO) Unrecognized attribute: 0xc057
(ice/WARNING) ICE(PC:1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5))/STREAM(0-1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5) aLevel=0)/COMP(1): Consent refresh timed out

(ice/INFO) ICE(PC:1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5))/STREAM(0-1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5) aLevel=0)/COMP(1): Consent refresh failed

(ice/INFO) ICE-PEER(PC:1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5):default)/CAND-PAIR(br08): setting pair to state CANCELLED: br08|IP4:192.168.2.176:49339/UDP|IP4:192.168.2.176:52952/UDP(turn-relay(IP4:192.168.178.25:56515/TCP|IP4:192.168.2.176:49339/UDP)|candidate:1502217555 1 udp 25042687 192.168.2.176 52952 typ relay raddr 80.113.157.125 rport 53996 generation 0 ufrag 9oaG network-id 1)

(ice/INFO) ICE-PEER(PC:1489051912852000 (id=619 url=https://www.onsplatform.tv/bewegenopafstand/beeldbellen/room/90bd4022-0524-45fd-bdd1-546b2a2853a5):default): all checks completed success=0 fail=1

(stun/INFO) STUN-CLIENT(consent): Timed out

+++++++ END ++++++++

0 个答案:

没有答案