@Override
 public boolean onCreateOptionsMenu(Menu menu) {
   super.onCreateOptionsMenu(menu);
   MenuInflater inflater = getMenuInflater();
   inflater.inflate(R.menu.selectscreen_menu, menu);
   return true;
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.select_screen);

    cache = ((SchoolPlannerApp) getApplication()).getData();

    initSpinner();
    checkSearch(getIntent());
  }
 @Override
 protected void onResume() {
   super.onResume();
   setInProgress("", false);
   loadingTimetable = false;
 }
 @Override
 public void setInProgress(String message, boolean active) {
   super.setInProgress(message, active);
   active = true;
 }
 @Override
 protected void onPostCreate(Bundle savedInstanceState) {
   super.onPostCreate(savedInstanceState);
   handleAutoSelect();
 }