Android Open Source - Timetable Event Copy Activity






From Project

Back to project page Timetable.

License

The source code is released under:

GNU General Public License

If you think the Android project Timetable listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.timetable.android.activities;
/*from  w  ww.  j  a  v  a  2  s .com*/
import java.text.ParseException;
import java.util.Calendar;
import java.util.Date;

import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import com.timetable.android.Event;
import com.timetable.android.R;
import com.timetable.android.Logger;

public class EventCopyActivity extends EventAddActivity {
  
  @Override 
  public void onCreate(Bundle savedBundleState) {
    super.onCreate(savedBundleState);
    
    try {
        Bundle extras = getIntent().getExtras();
        setEvent(new Event(extras.getBundle(EXTRA_COPY_EVENT)));
        initEventDate = Calendar.getInstance();
        initEventDate.setTime(INIT_DATE_FORMAT.parse(extras.getString(EventAddActivity.EXTRA_DATE)));
        setEventDate(getInitDate());
        Date copyDate = INIT_DATE_FORMAT.parse(extras.getString(EXTRA_DATE));
        
        
      } catch (ParseException e) {
        Logger.error("EventCopyActivity.onCreate. Incorrect data received");
        finish();
        return;
      } 
      getSupportActionBar().setTitle(getResources().getString(R.string.actionbar_copy_event));
    
    }
    

  
}




Java Source Code List

com.timetable.android.AlarmSoundPreference.java
com.timetable.android.BroadcastActions.java
com.timetable.android.DeviceMuteService.java
com.timetable.android.EventBroadcastSender.java
com.timetable.android.EventChecker.java
com.timetable.android.EventController.java
com.timetable.android.EventPager.java
com.timetable.android.EventPeriod.java
com.timetable.android.EventService.java
com.timetable.android.EventViewProvider.java
com.timetable.android.EventView.java
com.timetable.android.Event.java
com.timetable.android.IllegalEventDataException.java
com.timetable.android.Logger.java
com.timetable.android.ServiceStarter.java
com.timetable.android.TimetableApp.java
com.timetable.android.TimetableDatabase.java
com.timetable.android.activities.EventAddActivity.java
com.timetable.android.activities.EventCopyActivity.java
com.timetable.android.activities.EventDayViewActivity.java
com.timetable.android.activities.EventEditActivity.java
com.timetable.android.activities.SettingsActivity.java
com.timetable.android.alarm.AlarmDialogActivity.java
com.timetable.android.alarm.AlarmService.java
com.timetable.android.alarm.EventAlarm.java
com.timetable.android.uitests.AlarmDialogActivityTestCase.java
com.timetable.android.uitests.EventAddActivityTestCase.java
com.timetable.android.uitests.TimetableUiTestCase.java
com.timetable.android.utils.DateFormatFactory.java
com.timetable.android.utils.DateUtils.java
com.timetable.android.utils.FakeTimeProvider.java
com.timetable.android.utils.SimpleTimeProvider.java
com.timetable.android.utils.TestAlarmStarter.java
com.timetable.android.utils.TimeProvider.java
com.timetable.android.utils.Utils.java