如何使用意向推出Android日历应用程序(升级Froyo) [英] How to launch Android Calendar application using Intent (Froyo)
本文介绍了如何使用意向推出Android日历应用程序(升级Froyo)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想开了,从一个Android应用程序的日历应用程序。当我在网上搜索,我的一切是创建使用意向的新事件。我能找到的意图打开联系人和画廊等。
是否有可能推出日历特定周或天?如果可能的话,可能有人请帮助我吧。
在此先感谢。
解决方案
意向意图=新的意图(Intent.ACTION_EDIT);
intent.setType(vnd.android.cursor.item /事件);
intent.putExtra(标题,有的题);
intent.putExtra(说明,有些说明);
intent.putExtra(BEGINTIME,eventStartInMillis);
intent.putExtra(endTime的,eventEndInMillis);
startActivity(意向);
I want to open up the Calendar application from an android application. When i searched online, all i got is to create new events using intent. I could find Intents to open Contacts and Gallery etc.
Is it possible to launch the Calendar to a specific week or day? If possible, could someone please help me with it.
Thanks in advance.
解决方案
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", eventStartInMillis);
intent.putExtra("endTime", eventEndInMillis);
startActivity(intent);
这篇关于如何使用意向推出Android日历应用程序(升级Froyo)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文