@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_course); ctx = getApplicationContext(); courseListFragment = (CourseListFragment) getSupportFragmentManager().findFragmentById(R.id.course_fragment); CMApp app = (CMApp) getApplication(); courseListFragment.setImageLoader(app.getImageLoader()); trainee = (TraineeDTO) getIntent().getExtras().getSerializable("trainee"); courseListFragment.setTrainee(trainee); setTitle(getResources().getString(R.string.class_courses)); }