Hi I am able to get events using this code
cur = null;
cr = getContentResolver();
// Construct the query with the desired date range.
Uri.Builder builder = Instances.CONTENT_URI.buildUpon();
ContentUris.appendId(builder, 0);
ContentUris.appendId(builder, endMillis);
// Submit the query
cur = cr.query(builder.build(),
INSTANCE_PROJECTION,
null,
null,
null);
but as you see I can get only events within the given time duration, but I need all the events (no any time specification excluding repeated events) is this possible ? and how ?
please help me.
cur = cr.query(Uri.parse("content://com.android.calendar/events"),
INSTANCE_PROJECTION,
null,
null,
null);
it gives the error java.lang.IllegalArgumentException:
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…