android中Service裏面PendingIntent的數據傳輸問題

在android中Service裏面PendingIntent的數據傳輸需要更新。

具體用法是

PendingIntent pendingIntent = PendingIntent.getActivity(getBaseContext(), UUID.randomUUID().hashCode(), intent, PendingIntent.FLAG_UPDATE_CURRENT);

其中PendingIntent.FLAG_UPDATE_CURRENT就是用來更新數據的。

這是Service的機制所致?或許如此,android系統才需要恢復出廠值?那就不得而知了,仍需要從底層代碼進行研究。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章