我的 android 应用程序中有一个Notification
。这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(...) );