Android: add calendar entry

I am trying to add a calendar entry, but this is a mistake.

Source:

Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType("vnd.android.cursor.item/event"); intent.putExtra("title", "test"); intent.putExtra("description", "Popis"); intent.putExtra("eventLocation", "Somewhere"); intent.putExtra("beginTime", System.currentTimeMillis () + 60 * 60 * 1000); intent.putExtra("endTime", System.currentTimeMillis () + 2 * 60 * 60 * 1000); startActivity(intent); 

Sorry for my english, I'm starting. Thanks for the answer.

+4
source share

Source: https://habr.com/ru/post/1347373/


All Articles