在android中Service裏面PendingIntent的數據傳輸需要更新。
具體用法是
PendingIntent pendingIntent = PendingIntent.getActivity(getBaseContext(), UUID.randomUUID().hashCode(), intent, PendingIntent.FLAG_UPDATE_CURRENT);
其中PendingIntent.FLAG_UPDATE_CURRENT就是用來更新數據的。
這是Service的機制所致?或許如此,android系統才需要恢復出廠值?那就不得而知了,仍需要從底層代碼進行研究。