JOB_ID = 1000; static void enqueueWork(@NonNull Context context, @NonNull Intent work) { enqueueWork(context, SimpleJobIntentService.class, JOB_ID, work); } @Override protected void onHandleWork(@NonNull Intent intent) { … } @Override public void onDestroy() { super.onDestroy(); // TODO: ΞϓϦ͕ foreground ͳΒμΠΞϩάςʔϚͷ Activity ʹભҠ͠ɺ // TODO: όοΫάϥϯυͳΒ Toast Λग़͢Α͏ʹ͢ Toast.makeText(this, "All work complete", Toast.LENGTH_SHORT).show(); } }