Android 从日历中的实例获取搜索结果

Android 从日历中的实例获取搜索结果,android,google-calendar-api,Android,Google Calendar Api,我需要获取具有给定字符串的事件。例如:我需要获得三天内包含单词“test”的所有事件。如果我运行下面的程序,它将显示三天内的所有事件 long begin = Calendar.getInstance().getTimeInMillis(); long end = begin + (86000000*3); System.out.println("01 - begin: " +begin+" end "+end); String[] proj = new String[]{Instances.

我需要获取具有给定字符串的事件。例如:我需要获得三天内包含单词“test”的所有事件。如果我运行下面的程序,它将显示三天内的所有事件

long begin = Calendar.getInstance().getTimeInMillis();
long end =  begin + (86000000*3);
System.out.println("01 - begin: " +begin+" end "+end);
String[] proj = new String[]{Instances._ID, 
                Instances.TITLE,
                Instances.EVENT_LOCATION,
                Instances.BEGIN, 
                Instances.END, 
                Instances.END, 
                Instances.EVENT_ID};
Cursor cursor =  Instances.query(context.getContentResolver(), proj, begin, end);
当我尝试下面的查询时,它给出了res

Cursor cursor = Instances.query(context.getContentResolver(), proj, begin, end,"test");
我不知道我在哪里犯的错误


提前谢谢。

恐怕您的问题不清楚,您能重新措辞吗?日历的搜索功能。