コード例 #1
0
 @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());
 }
コード例 #2
0
 @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());
 }