public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // getLoaderManager is actually needed to be called here or the loaders magically // won't work, wtf is this bullshit getLoaderManager(); view = (DemoView) View.inflate(this, R.layout.demo, null); view.setViewListener(viewListener); setCalendarModel(new DemoModel()); setContentView(view); }
public DemoController setCalendarModel(DemoModel model) { this.model = model; view.setModel(model); return this; }