Android 日历公开赛

Android 日历公开赛,android,calendar,Android,Calendar,我正试图在添加到日历时准确打开事件ID为return的事件,问题是日历以白色屏幕开始,然后关闭return to app,出现了什么问题?没有在日历上打开事件:)任何日志或堆栈跟踪?您添加了权限吗? Intent intent = new Intent(Intent.ACTION_VIEW); // Android 2.2+ intent.setData(Uri.parse("content://com.android.calendar/events/"

我正试图在添加到日历时准确打开事件ID为return的事件,问题是日历以白色屏幕开始,然后关闭return to app

,出现了什么问题?没有在日历上打开事件:)任何日志或堆栈跟踪?您添加了权限吗?
Intent intent = new Intent(Intent.ACTION_VIEW);
    // Android 2.2+
    intent.setData(Uri.parse("content://com.android.calendar/events/"
            + String.valueOf(eventId)));
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
            | Intent.FLAG_ACTIVITY_SINGLE_TOP
            | Intent.FLAG_ACTIVITY_CLEAR_TOP
            | Intent.FLAG_ACTIVITY_NO_HISTORY
            | Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    context.startActivity(intent);