gpt4 book ai didi

java - 如何通过编程代码到达日历中的编辑事件?

转载 作者:太空宇宙 更新时间:2023-11-03 11:21:35 24 4
gpt4 key购买 nike

如何通过编程代码访问日历中的编辑事件?非常感谢任何帮助,并提前致谢。 enter image description here

最佳答案

使用这个 Intent 你可能会得到解决方案:

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);

关于java - 如何通过编程代码到达日历中的编辑事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7429527/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com