intent.putExtra(CourseIntallerService.SERVICE_ACTION, CourseIntallerService.ACTION_UPDATE);
intent.putExtra(CourseIntallerService.SERVICE_SCHEDULEURL, courseSelected.getScheduleURI());
intent.putExtra(CourseIntallerService.SERVICE_SHORTNAME, courseSelected.getShortname());
context.startService(intent);
}
<BUG>public void cancelCourseInstall(Intent intent, Course courseSelected){
</BUG>
intent.putExtra(CourseIntallerService.SERVICE_ACTION, CourseIntallerService.ACTION_CANCEL);
intent.putExtra(CourseIntallerService.SERVICE_URL, courseSelected.getDownloadUrl());
context.startService(intent);

intent.putExtra(CourseIntallerService.SERVICE_ACTION, CourseIntallerService.ACTION_UPDATE);
intent.putExtra(CourseIntallerService.SERVICE_SCHEDULEURL, courseSelected.getScheduleURI());
intent.putExtra(CourseIntallerService.SERVICE_SHORTNAME, courseSelected.getShortname());
context.startService(intent);
}
public void cancelCourseInstall(Context context, Intent intent, Course courseSelected){
intent.putExtra(CourseIntallerService.SERVICE_ACTION, CourseIntallerService.ACTION_CANCEL);
intent.putExtra(CourseIntallerService.SERVICE_URL, courseSelected.getDownloadUrl());
context.startService(intent);
