如何将新的手机日历添加到 Android? [英] How can I add a new phone calendar to Android?

查看:30
本文介绍了如何将新的手机日历添加到 Android?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android 上的日历应用可以合并多个单独的日历:本地手机日历、谷歌日历等.

The calendar app on Android can merge multiple separate calendars: local phone calendar, Google calendars, etc.

如何将新的此类日历添加到 Android 手机?我想在该日历中动态生成事件,而无需访问任何在线资源(如 Google).

How can I add a new such calendar to the Android phone? I want to dynamically generate the events in that calendar without accessing any online resource like Google.

我想支持 Android 1.5 和 2.3.4 的手机.我可能有一天会为较新的手机更新到 4.0,但谁知道那会是什么时候......

I'd like to support phones with Android 1.5 and 2.3.4. I'll probably get an update to 4.0 for the newer phone someday but who knows when that will be...

推荐答案

我找到了 这个链接 讨论在 4.0 之前的手机上访问日历内容提供程序.

I've found this link that discusses accessing the Calendar content provider on phones before 4.0.

基本上你只需要知道提供者的 URI 字符串:

Basically you just have to know the URI strings for the provider:

  • content://calendar 适用于 Android <2.2
  • content://com.android.calendar 适用于 Android 2.2+.
  • content://calendar for Android < 2.2
  • content://com.android.calendar for Android 2.2+.

这篇关于如何将新的手机日历添加到 Android?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆