Back to project page Timetable.
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.
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)); } }