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

  • Home
  • SEARCH
  • 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 6156907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:41:37+00:00 2026-05-23T20:41:37+00:00

Actually i have created an app from which i can stored notes to my

  • 0

Actually i have created an app from which i can stored notes to my device calendar..now there may be cases where i want to chnage my notes and again want to save in the device calender..so all works fine..but what i want is when i stored new data from my app to device calendar the data previously present is removed from the device calendar and most importantly only the data that are removed are those data that are inserted by my app not the data already present in device calendar by someone..i mean to say it removed data and insert new data that are given by my app.. The code i have written for storing data in device calendar is shown below..whenever this function is called i want to delete all my previously saved data from my app..

public void setAlertOnDevice()
    {   



            Date dtStartDate = CycleManager.getSingletonObject().getStartDate();

            boolean bDeleteAndReturn = false;

            Calendar cal = Calendar.getInstance();

            if (dtStartDate.getTime() ==  CycleManager.getSingletonObject().getDefaultDate().getTime())
            {
                    bDeleteAndReturn = true;
                    dtStartDate = cal.getTime();
            }  


            getOffsetsForCycleStages(CycleManager.getSingletonObject().iAvgCycleTime);
            if(bDeleteAndReturn==false)
            {
                if (CycleManager.getSingletonObject().bNextCycleAlert && iStart>0)
                {
                    cal.setTime(dtStartDate);
                    cal.add(Calendar.DATE, iStart);

                    Uri EVENTS_URI = Uri.parse(getCalendarUriBase(this) + "events");
                    ContentResolver cr = getContentResolver();
                    String str="SeeCycles: Start";
                    String strDescription="Cycle expected today. On start, enter the date into SeeCycles";
                    ContentValues values = new ContentValues();
                    values.put("calendar_id", 1);
                    values.put("title", str);
                    values.put("description", strDescription);
                    values.put("dtstart", cal.getTimeInMillis()); 
                    values.put("dtend", cal.getTimeInMillis()); 
                    cr.insert(EVENTS_URI, values);
                }
    }
  • 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-05-23T20:41:37+00:00Added an answer on May 23, 2026 at 8:41 pm

    Use the Google Calendar GData API if you wish to modify the user’s Google Calendar, please.

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

Sidebar

Related Questions

I have an app that uses the FileSystemWatcher to listen for Created and Deleted
I have to use MS SQL Server 2008 to store data of PHP CAKE
Is there a way to using a JQuery function to programmatically create an event
I have been tearing my hair out on this and thus I am looks
I accidentally deleted my gen folder and now, predictably, my resources are all messed
I've got a client app written in C# and want to read the duration
In a standard Rails controller, I'd create a record like this: @user = User.new(params[:user])
I am creating a web application that is trying to use public Facebook content.
I'm using Pinax to create a new project. For this project I needed to

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.