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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:55:06+00:00 2026-06-15T18:55:06+00:00

The code i’m working on lists the events from the calendar, i need to

  • 0

The code i’m working on lists the events from the calendar, i need to limit the range of dates, and in the examples i see this code:

// Construct the query with the desired date range.
Uri.Builder builder = Instances.CONTENT_URI.buildUpon();
ContentUris.appendId(builder, startMillis);
ContentUris.appendId(builder, endMillis);

I don’t understand why appendId is used in this way. startMillis and endMillis are not ids, i would expect that the parameter name had to be provided eg “startdate” , It’s not clear to me why this works, and what other parameters could be specified this way. Are there more parameters supported by appenedId? How can i know?

  • 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-15T18:55:07+00:00Added an answer on June 15, 2026 at 6:55 pm

    What appendId actually does is add a /# to your uri where # is a number. In your example (assuming startMillis = 1000 and endMillis = 3000 and the uri content://com.google.calendar/) this would mean your uri could end up like this:

    content://com.google.calendar/1000/3000
    

    This is something that a uri parser can pickup:

    URIMatcher.addURI(AUTHORITY, calendar + "/#/#", DATE_RANGE);
    

    Long story short: appendId is just a convenient and type-safe way to add an integer to your uri path.

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

Sidebar

Related Questions

Code sample for my question: IList<TestDataAnimal> testDataFromDb = this.db.TestDataAnimals.Include(t => t.TestType).Include(t => t.Visit).Include(t =>
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Code below is not working as expected to detect if it is in design
I have this code to decode numeric html entities to the UTF8 equivalent character.
Code example: var Events = $({}); Events.on('myCustomEvent', function(){ console.log('myCustomEvent 1') }) Events.trigger('myCustomEvent'); // I
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
Code first. This is what I'm trying to do. I'm close, but I think
Code is like this $.get( //'index.php?route=sale/order/infoforhome&token=<?php echo $token; ?>', 'index.php?route=common/home/orderinfo&token=<?php echo $token; ?>', {
Does anyone know how can I replace this 2 symbol below from the string
( Code is for Android Actually, I need code to be portable between Android

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.