How to reach edit event in Calendar through programmatical code? Any help is highly appre开发者_开发问答ciated and thanks in advance.
use this intent you may get 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);
This tutorial describes how to access the internal calendar database inside Google Android applications: http://jimblackler.net/blog/?p=151
精彩评论