1

How to call event calendar without viewing the calendar?

view story
linux-howto

http://stackoverflow.com – I am creating an schedule with a timetable. My question is, when i need to create a new event i call the activity by this code. public void callEventDialog(int line, int column){ Intent intent = new Intent(Intent.ACTION_EDIT); Calendar c = Calendar.getInstance(); c.setTimeInMillis(startWeek.getTimeInMillis() + column * DIM + line * 30 * 60 * 1000); intent.setType("vnd.android.cursor.item/event"); intent.putExtra(Events.TITLE, "title"); intent.putExtra(Events.DTSTART, c.getTimeInMillis()); intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, c.getTimeInMillis (HowTos)