Code example for ContentValues

Methods: containsKeygetAsLong

	 * returns the AndroidCalendarId for this event. 
	 * @return the AndroidCalendarId for this event 
	public long getAndroidCalendarId() { 
		long Result = -1;
		if (this.ContentValues.containsKey(Events.CALENDAR_ID))
			Result = this.ContentValues.getAsLong(Events.CALENDAR_ID);
		return Result;
	 * returns the UID for this event. you can also check, whether the UID was stored from server. the V1.7 release and before didn't save them. 
	 * example: UID:e6be67c6-eff0-44f8-a1a0-6c2cb1029944-caldavsyncadapter 
	 * @return the UID for this event 
	public String getUID() {
		String Result = "";
		if (this.ContentValues.containsKey(UID))
			Result = this.ContentValues.getAsString(UID);
Connect your IDE to all the code out there  Get Codota for Java