开发者

How to reach edit event in Calendar through programmatical code?

开发者 https://www.devze.com 2023-04-05 14:22 出处:网络
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? 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

精彩评论

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