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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:44:46+00:00 2026-05-26T00:44:46+00:00

I have very basic understanding problem of Content types. I went through lot of

  • 0

I have very basic understanding problem of Content types.

I went through lot of examples and text explaining the above term, but still have some basic understanding problem. Can some clarify me please.

In the android notepad example, and many others, it is mentioned vnd.android.cursor.dir/ resolves to a list of items in a directory and vnd.android.cursor.item/ refers to specific item in a directory.

Is this vnd.android.cursor.dir some standard constant defined by android. Where did this come from?, or can i change it like

vn.com.android.myexample.dir/

How is this even resolved and what is its purpose, why not use the full CONTENT_URI?

Sorry, i’m totally lost, and don’t understand this.

  • 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-26T00:44:47+00:00Added an answer on May 26, 2026 at 12:44 am

    Documentation: https://developer.android.com/guide/topics/providers/content-provider-basics#MIMETypeReference

    The MIME types returned by ContentProvider.getType have two distinct parts:

    type/subType
    

    The type portion indicates the well known type that is returned for a given URI by the ContentProvider, as the query methods can only return Cursors the type should always be:

    • vnd.android.cursor.dir for when you expect the Cursor to contain
      0 through infinity items

    or

    • vnd.android.cursor.item for when you expect the Cursor to contain
      1 item

    The subType portion can be either a well known subtype or something unique to your application.

    So when using a ContentProvider you can customize the second subType portion of the MIME type, but not the first portion. e.g a valid MIME type for your apps ContentProvider could be:

    vnd.android.cursor.dir/vnd.myexample.whatever
    

    The MIME type returned from a ContentProvider can be used by an Intent to determine which activity to launch to handle the data retrieved from a given URI.

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

Sidebar

Related Questions

I have a very basic texture map problem in GL on iPhone, and I'm
I have a decent understanding of C# and a very basic understanding of powershell.
I have a very basic understanding of shell scripting, but what I need to
I have a very basic understanding of how autoconf and automake work, gathered from
I have some very basic semaphore code that works great on Linux, but cannot
I have a very basic doubt regarding the method that gets executed when app
I have a very basic knowledge of the web programming, and I couldn't figure
I have a very basic data class that is subclassed from NSObject. I declare
I have a very basic query string which passes a ID to a receiving
Well, I think I have a very basic doubt here: I'm developing an app

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.