Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9109351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:01:29+00:00 2026-06-17T03:01:29+00:00

I am adding event like this… public static String EVENT_URI = content://com.android.calendar/events; public static

  • 0

I am adding event like this…

public static String EVENT_URI = "content://com.android.calendar/events";
public static String CALENDAR_URI = "content://com.android.calendar/calendars";

public static Uri insert(ContentResolver cr, ContentValues cv) {

    Uri newEvent = null;

    try {
        cv.put(Event.CALENDAR_ID, 1);
        cv.put(Event.TITLE, "title");
        cv.put(Event.DESCRIPTION, "description");
        cv.put(Event.DTSTART, new Date().getTime());
        cv.put(Event.DTEND, new Date().getTime() + 1000 * 60 * 60);
        cv.put(Event.EVENT_LOCATION, "Hall: " + "+ 1000 * 60 * 60");
        cv.put(Event.HAS_ALARM, true);
        cv.put(Event.EVENT_TIMEZONE, TimeZone.getDefault().getDisplayName());

        newEvent = cr.insert(Uri.parse(EVENT_URI), cv);
    } catch (Exception e) {
        e.printStackTrace();
    }

    return newEvent;
}

I want to sync with Google calendar after adding event, Is there any parameter which I have to send with ContentValues OR I need to fire query for sync.

how this useful http://developer.android.com/guide/topics/providers/calendar-provider.html#sync-adapter

Help!! Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T03:01:30+00:00Added an answer on June 17, 2026 at 3:01 am

    Sync from Android phone's calendar to Google Calendar on web without using Google Calendar Data API. Is this possible?

    Waiting for best answer because I already given account selection feature.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In almost all tutorials of BackgroundWorker the reportProgress event is handled like this (this
I'm adding markers to my Google Map like this: function createMarker(location, info) { var
I've implemented a class that looks like this interface: [ImmutableObject(true)] public interface ICustomEvent {
i am reading an XML feed and adding results like this: XElement _xml; try
I have some simple Django Models like this: class Event(models.Model): # some stuff class
I have a dictionary that looks like this Dictionary<string,string[]> I also have 2 dropdownlist.
I'm using jquery and creating event handlers like this: $('#some_selector a.add').live('click', function(){...}); However, I
I have a listview like this and in FormLoad event I should do some
Im adding dynamically textboxes to my form using jquery like this: $(document).ready(function(){ var i
In C# adding event handler methods is very easy. You just type object.event +=

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.