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 8820067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:31:00+00:00 2026-06-14T05:31:00+00:00

I have strange issue, I don’t know how to resolve this. I have tested

  • 0

I have strange issue, I don’t know how to resolve this. I have tested many things but dont know what the problem.

Ok I have create simple program to Insert event into google calendar device this will inserted into google calendar successfully.

When I am trying to editing from google calendar or click on edit menu google calendar will be crashed. I have testing in many devices the problem was same for all the device calendar.

here is my code

ContentResolver cr = getContentResolver();
        ContentValues values = new ContentValues();
        Uri EVENTS_URI = null;

        EVENTS_URI = Uri.parse("content://com.android.calendar/events");

        long time = System.currentTimeMillis();

        values.put("calendar_id", 1);
        values.put("title", "event.eventName");
        values.put("allDay", 0);
        values.put("dtstart", time); 
        values.put("dtend", time + 1000 * 60 * 60 * 2);
        values.put("description", "description");
        values.put("visibility", 0);
        values.put("transparency", 0);
        values.put("hasAttendeeData", 0);
        values.put("hasAlarm", 1);
        values.put("eventLocation", "location");
        cr.insert(EVENTS_URI, values);

I am not able to detecting or reason that why this happen in my inserted event only

  • 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-14T05:31:01+00:00Added an answer on June 14, 2026 at 5:31 am

    After analysis for inserting event and searching the logcat for calendar I have found that my calendar was force close when I am trying to edit the event which was inserted from my application.

    The reason is I have not set the TimeZone field value for my event and in calendar it will get as null pointer at editing time that’s why it gone to force close

    I have also search for logcat application for android I found this

    https://play.google.com/store/apps/details?id=org.jtb.alogcat&feature=search_result

    to detect all the log its very useful to me from that log I know that TimeZone filled value null and calendar application gone to crashed.

    so I just add this filled value at inserting time and it’s work perfectly.

    for ICS

    values.put(CalendarContract.Events.EVENT_TIMEZONE, TimeZone.getDefault().getID());
    

    below ICS

    values.put("eventTimezone", TimeZone.getDefault().getID());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very strange problem,I don't know whether it is awkward to normal
I have a really strange issue with my application and I don't know why
I have a strange issue with jQuery's hover, addClass $(document).ready(function(){ $('#selectable li').hover( function(){ $(this).addClass('selecting',
I have a somewhat strange issue with visual studio. Almost every time I create
I have this strange issue that my git push origin master and cap deploy
I have this very strange issue with my MVC 2 project. Often times, I'll
Very strange issue... I have something like this in my Controller: public ActionResult Initialize(IEnumerable<MyModel>
I have a strange issue: there is a SectionPart with composite, which is create
I have this strange issue going on with my CSS on my site, and
I have a strange issue with bluetooth socket. If I create socket and later

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.