开发者

How to reach edit event in Calendar through programmatical code?

How to reach edit event in Calendar through programmatical code? Any help is highly appre开发者_开发问答ciated and thanks in advance.

How to reach edit event in Calendar through programmatical code?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜