日历专题提供日历的最新资讯内容,帮你更好的了解日历。
通过EventKit可以对iOS日历事件进行读取,添加等操作。但网上找到的都是使用Objective-C来编写的。 下面提供一个Swift版的样例,演示如何添加一个事件以及获取所有的事件列表。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 3
准备工作 添加 EventKit.framework 在当前类   import EventKit 实现添加 func addToCalendarClicked() { let eventStore = EKEventStore() eventStore.requestAccessToEntityType(.Event) {(granted, error)
我有兴趣知道如何在设备中添加日历事件,但使用swift。我知道在Objective-C中有一些例子,但目前还没有什么是迅速的。非常感谢。 Swift 3.0版本 let eventStore : EKEventStore = EKEventStore() // 'EKEntityTypeReminder' or 'EKEntityTypeEvent' eventStore.re
我的应用程序具有向日历添加事件的功能,但为了实现此 Android,日历应用程序需要有日历. 要添加日历,您必须添加Google帐户.所以我在模拟器中添加了一个Google帐户.它显示为同步关闭: ,所以当我点击它时,数据同步下没有任何项目. 当我进入日历应用程序 – 设置并单击显示的电子邮件地址时,表示该帐户未被同步. 当我点击帐户和同步按钮时,我会回到正方形,无限循环. 请注意,使用模拟器中的
我已按照此链接中的教程 – http://jimblackler.net/blog/?p=151&cpage=2#comment-52767来访问内部的android日历数据库(即使它没有得到SDK的正式支持).它适用于除重复活动之外的所有条目.光标根本不会返回任何重复发生的事件.有人可以帮助我吗?以下是我的光标声明 – String[] projection = new String[] { "
从Stack Overflow问题 How to add calendar events in Android?我开始知道如何添加日历事件,但是具体的开始时间(小时和分钟)和结束时间(小时和分钟).我们如何添加? 做这样的事情.这里startDate是你想要开始的时间. long startTime,endTime; String startDate = "2011-09-01";
我想要的:我想在 Android 2.2中添加日历事件. 我有什么:我使用以下代码添加了一个事件 Uri calendars = Uri.parse("content://com.android.calendar/events"); Cursor managedCursor = managedQuery(calendars, null, null, null, null); st
我需要使用一些预先填充的数据打开 Android设备的日历应用.我使用的逻辑似乎填充了以下字段: >活动说明 >活动地点 >从日期,到目前为止 >全天活动/没有 >重复/重复信息 我无法填充“提醒”部分,我想填写提醒部分.很高兴能得到一些帮助 这是我用来打开日历应用程序和填充日期的代码. // Intent to open Calendar Event Intent intent = new In
有没有办法添加,删除和更新日历. 和 有没有办法在日历中添加,删除和更新事件. 谢谢. 检查此代码 http://code.google.com/p/android-calendar-provider-tests/source/browse/trunk/src/com/androidbook/androidcalendar/CalendarActivity.java 它可能对你有帮助
有人可以告诉我如何修改(编辑)和删除用户自己使用我的 Android应用程序添加的Android日历事件.我已经尝试了很多,但他们都没有为我工作.我正在和这些压光机打交道.我们有解决办法吗? 检查这个代码 http://code.google.com/p/android-calendar-provider-tests/source/browse/trunk/src/com/androidbook/
上个月Google添加了将独立提醒添加到其日历应用程序的功能(请参阅 article),我已尝试通过标准的日历内容提供程序获取这些事件,但没有任何成功,这些项目不会由CalendarContract.Instances.CONTENT_URI查询返回并且也不会在CalendarContract.CalendarAlerts.CONTENT_URI中列为警报. 也许这个数据根本没有导出. 附:我知道
The code Written below works for me Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType("vnd.android.cursor.item/event"); intent.putExtra("t
我想从 Android应用程序打开日历应用程序,但是具有特定的calendarId. 我的代码: final Intent calIntent = new Intent(Intent.ACTION_EDIT); calIntent.setType("vnd.android.cursor.item/event"); startActivityForResult(calIntent, RESULT_
嗨,我在日历应用程序中指出取消/完成按钮.这两个按钮固定在顶部,即使您滚动底部的“窗体”,它们总是可见的. 我可以知道,它是Action Bar的一部分吗?如果是这样,那么实现应该如何呢? 请记住, Android是开源的,大多数应用程序预安装在运行aosp的Android设备上都是开源的. 这是项目:https://github.com/android/platform_packages_app
从我的应用程序,我启动了一个意图的日历: Calendar cal = Calendar.getInstance(); Intent intent = new Intent(Intent.ACTION_EDIT); intent.setType("vnd.android.cursor.item/event"); intent.putExtra("
我正在使用 Android日历提供程序来显示事件. 我也通过使用事件的EVENT_ID作为参考,将事件与本地应用程序数据库中的图像相关联. 我现在想知道是否可以在多个设备上保持相同的参考? 我了解到,对于account_type =’com.google’,GoogleCalendarSyncAdapter使用CalendarContract.EventsColumns.SYNC_DATA1来存储
Android上的日历应用程序可以合并多个单独的日历:本地电话日历,Google日历等. 如何在Android手机中添加新的日历?我想动态地生成该日历中的事件,而不需要访问任何在线资源(如Google). 编辑:我想支持Android 1.5和2.3.4手机.有一天我可能会更新到4.0的新手机,但谁知道什么时候会… 我刚刚设法使用ICS的新API添加了一个日历. Stefan的答案有帮助,但是为了
嗨,我可以使用此代码获取事件 cur = null; cr = getContentResolver(); // Construct the query with the desired date range. Uri.Builder builder = Instances.CONTENT_URI.buildUpon(); ContentUris.append
我只是在使用日历内容提供程序进行操作,现在我无法显示特定日期的事件. 我知道<的事件URI 2.1版和2.2版,如下: eventsUri = Uri.parse("content://calendar/events"); // < Android 2.1 version eventsUri = Uri.parse("content://com.android.calendar/event
好的,我在这里非常精确地阅读了文档: http://developer.android.com/guide/topics/providers/calendar-provider.html#update-event,它写的是这样的: // Here is an example of an intent that sets a new title for a specified event and l