How to get to the editing event in the calendar through program code?

How to get to the editing event in the calendar through program code? Any help is much appreciated and in advance. enter image description here

+4
source share
2 answers

use this intention, you can get a solution:

Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType("vnd.android.cursor.item/event"); intent.putExtra("title", "Some title"); intent.putExtra("description", "Some description"); intent.putExtra("beginTime", cal.getTimeInMillis()); intent.putExtra("endTime", cal.getTimeInMillis()+60*60*1000); startActivity(intent); 
0
source

This tutorial describes how to access the internal calendar database in Google Android applications: http://jimblackler.net/blog/?p=151

0
source

All Articles