![](/img/trans.png)
[英]Using monkeyrunner: How can I call intents during the execution of an application?
[英]How to Call Calendar in my Application using Intents?
如何使用Intent在我的应用程序中调用日历 ?
你需要一个看起来像这样的Intent
:
Intent calendarIntent = new Intent(Intent.ACTION_EDIT);
calendarIntent.setType("vnd.android.cursor.item/event");
calendarIntent.putExtra("title", "Title");
calendarIntent.putExtra("beginTime", startTimeMillis);
calendarIntent.putExtra("endTime", endTimeMillis);
calendarIntent.putExtra("description", "Description");
然后你可以通过调用它来启动它:
startActivity(calendarIntent);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.