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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:44:01+00:00 2026-05-21T05:44:01+00:00

When querying a ContentProvider on Android, one specifies the ContentProvider of interest by providing

  • 0

When querying a ContentProvider on Android, one specifies the ContentProvider of interest by providing the “content URI” for that ContentProvider. What happens when multiple ContentProvider’s serve that same URI, either intentionally? or maliciously?

When trying to open a pic on my phone, I’ve seen it prompt with apps that can “handle” the image. Will the same kind of thing happen here?

  • 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-21T05:44:02+00:00Added an answer on May 21, 2026 at 5:44 am

    Multiple ContentProviders can’t do this. The first application that registers a content provider using the element in its manifest has control over the URI pattern. I’m pretty sure that you’ll get an installation error if you try to add another provider that uses the same URI pattern. Android keeps track of providers and URIs.

    When you see a prompt with multiple apps for handling a file or situation, that’s because the apps have specified an with a child that includes
    android.intent.category.CATEGORY_ALTERNATIVE or android.intent-category.CATEGORY_SELECTED_ALTERNATVE. In essence, the app or apps are declaring themselves to be alternatives to the action specified in the child. This allows the user to have multiple choices for handling a type of data.

    It makes sense to provide alternatives: a user might want to edit a picture, share it via Twitter, or e-mail it.

    Note that two content providers can do the same thing, but they can’t use the same URI. An app has to make a conscious choice of which one to use, or provide some mechanism of choosing between the two.

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

Sidebar

Related Questions

I am querying data from views that are subject to change. I need to
I am querying information from Active Directory . I have code that works, but
I am querying the ContactsContract.Data table in Android using a ListView to display the
I am querying CallLog.Calls content provider for call details. Everything works fine except when
When querying a table with an CLOB field (CONTENT_VALUE) I get the same results
I'm querying a mysql table which then loops through the results. One of the
When querying with LDAP against our Active Directory structure to look up user accounts,
I'm querying a bunch of information from cisco switches using SNMP. For instance, I'm
Well I am querying my DB, a table called bookBilling, to get a value
The db I am querying from is returning some null values. How do I

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.