@Override protected void onProgressUpdate(Integer... i) { NotificationMaker notifMaker = new NotificationMaker( getApplicationContext(), "Filling database", null, null, null, null, i[0], i[1]); notifManag.notify(progressNotificationRef, notifMaker.getNotif()); }
@Override protected void onPostExecute(String result) { notifManag.cancel(progressNotificationRef); NotificationMaker notifMaker = new NotificationMaker( getApplicationContext(), "Database filled", null, null, null, MainActivity.class); notifManag.notify(notificationRef, notifMaker.getNotif()); }