protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); NotificationService.resetNotificationInfo(); setContentView(R.layout.activity_course_detail); getActionBar().setHomeButtonEnabled(true); ActionBar actionBar = getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); Intent intent = this.getIntent(); String title = intent.getStringExtra("title"); int semester = intent.getIntExtra("semester", 0); if (title != null) { setTitle(title); } else { setTitle("Unknown Course"); } adb = new AssignmentsDatabase(this); List<Item> asgs = adb.getAllWithSemesterAndCourse(semester, title); listContent.addAll(asgs); adapter = new AssignmentAdapter(this, R.layout.course_item_row, listContent); setListAdapter(adapter); getListView().setOnItemClickListener(listener); }