@Override
  protected void onCreate(Bundle savedInstanceState) {

    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.schedule_calendar_selection_layout);

    if (getIntent() != null) {
      calendarID = getIntent().getLongExtra(KEY_CALENDAR_ID, 0);
    }
    if (calendarID == 0) {
      return;
    }

    InitUI();
    super.onCreate(savedInstanceState);
  }
Пример #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.weather_detail_layout);

    Intent intent = getIntent();
    if (intent != null) {
      Bundle extras = intent.getExtras();
      if (extras != null) {
        city = extras.getString("city");
        cityName = extras.getString("cityname");
      }
    }

    if (city == null) {
      return;
    }

    initUI();
    initTitle();
    updateWeatherData();
  }
Пример #3
0
 @Override
 protected void onResume() {
   super.onResume();
 }