1
私はNotification
をあなたのAndroidアプリケーションに持っています。そして、このNotification
には進行状況バーがあります。通知の更新方法
私のNotification
の進捗バーの進捗状況を更新する場合は、同じインスタンスをNotification
にするか、Notification
の新しいインスタンスを作成する必要がありますか?同じ
mNotification = new Notification(..); // create in the constructor of my activity
getNotificationManager().notify(TAG, FILE_UPLOAD_ID, mNotification);
または
getNotificationManager().notify(TAG, FILE_UPLOAD_ID, new Notification(...));