Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/192.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android CalendarContract.EventsColumns.CUSTOM\u应用程序\u URI用于什么?_Android_Calendar - Fatal编程技术网

Android CalendarContract.EventsColumns.CUSTOM\u应用程序\u URI用于什么?

Android CalendarContract.EventsColumns.CUSTOM\u应用程序\u URI用于什么?,android,calendar,Android,Calendar,标题说明了一切:CalendarContract.EventsColumns.CUSTOM\u APP\u URI的用途是什么 我这样问是因为我正在寻找一个地方,我的应用程序可以将一些特定于应用程序的数据填入事件表中。也许这是一个徒劳的问题,因为当然,我需要确保其他应用程序不会破坏我的数据 也许更好的问题是:如何在日历事件表中存储特定于应用程序的数据?如CalendarContract中所述: /** * Activity Action: Display the event to the us

标题说明了一切:CalendarContract.EventsColumns.CUSTOM\u APP\u URI的用途是什么

我这样问是因为我正在寻找一个地方,我的应用程序可以将一些特定于应用程序的数据填入事件表中。也许这是一个徒劳的问题,因为当然,我需要确保其他应用程序不会破坏我的数据


也许更好的问题是:如何在日历事件表中存储特定于应用程序的数据?

如CalendarContract中所述:

/**
 * Activity Action: Display the event to the user in the custom app as
 * specified in {@link EventsColumns#CUSTOM_APP_PACKAGE}. The custom app
 * will be started via {@link Activity#startActivityForResult(Intent, int)}
 * and it should call {@link Activity#setResult(int)} with
 * {@link Activity#RESULT_OK} or {@link Activity#RESULT_CANCELED} to
 * acknowledge whether the action was handled or not.
 *
 * The custom app should have an intent-filter like the following
 * <pre>
 * {@code
 * <intent-filter>
 *    <action android:name="android.provider.calendar.action.HANDLE_CUSTOM_EVENT" />
 *    <category android:name="android.intent.category.DEFAULT" />
 *    <data android:mimeType="vnd.android.cursor.item/event" />
 * </intent-filter>
 * }
 * </pre>
 * <p>
 * Input: {@link Intent#getData} has the event URI. The extra
 * {@link #EXTRA_EVENT_BEGIN_TIME} has the start time of the instance. The
 * extra {@link #EXTRA_CUSTOM_APP_URI} will have the
 * {@link EventsColumns#CUSTOM_APP_URI}.
 * <p>
 * Output: {@link Activity#RESULT_OK} if this was handled; otherwise
 * {@link Activity#RESULT_CANCELED}
 */
/**
*活动操作:在自定义应用程序中将事件显示为
*在{@link events列#CUSTOM_APP_PACKAGE}中指定。自定义应用程序
*将通过{@link Activity#startActivityForResult(Intent,int)}启动
*它应该调用{@link Activity#setResult(int)}
*{@link Activity#RESULT_OK}或{@link Activity#RESULT_cancelled}到
*确认是否已处理该操作。
*
*自定义应用程序应具有如下所示的意图过滤器
* 
*{@code
* 
*    
*    
*    
* 
* }
* 
*
*输入:{@link Intent#getData}具有事件URI。额外的
*{@link#EXTRA_EVENT_BEGIN_TIME}具有实例的开始时间。这个
*额外{@link#额外_CUSTOM_APP_URI}将具有
*{@linkeventscolumns#CUSTOM_APP_URI}。
*
*输出:{@link Activity#RESULT _OK}如果已处理;否则
*{@link活动#结果_取消}
*/
//@SdkConstant(SdkConstantType.ACTIVITY\u INTENT\u ACTION) 公共静态最终字符串操作\u句柄\u自定义\u事件=
“android.provider.calendar.action.HANDLE_CUSTOM_事件”

您找到添加自定义数据的方法了吗?