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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:56:27+00:00 2026-05-15T03:56:27+00:00

I have years of experience with Microsoft .NET development (primarily C#) and have been

  • 0

I have years of experience with Microsoft .NET development (primarily C#) and have been working to come up to speed on Android and Java. So far, I’ve built a small application with a couple screens and a working content provider.

All of the examples I’ve seen for developing content providers typically work with a single table, so I got the impression that this was the convention.

I built a couple more content providers for other tables and ran into the “Unknown URI” IllegalArgumentException when I tried to test them. The exception is being thrown by one of my content providers, but not the one I was intending to call.

It appears that my application is using the first content provider in the AndroidManifest.xml file, which now has me wondering if I should only have a single content provider for the entire application.

Are there any best practices and/or examples for working with multiple tables in an Android application? Should I have one content provider per table or only one for the entire application? If the former, how do I resolve URIs to the proper provider? If the latter, how do I keep my content provider code from being polluted with switch statements?

  • 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-15T03:56:27+00:00Added an answer on May 15, 2026 at 3:56 am

    99% of Android applications do not need content providers.

    Content providers have one primary use: inter-process communication. If you are:

    • expecting other developers to access your content providers, or
    • are integrating to Android in places that require a content provider (e.g., search suggestions for the Quick Search Box)

    then, and only then, do you implement a content provider.

    Otherwise, all you are doing is adding overhead to your application and making your code more difficult to maintain.

    So, if your application is one of the 99% that does not need content providers, just get rid of the one you have and access your content by some other means (e.g., SQLiteDatabase).

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

Sidebar

Related Questions

For the last 4 years I have been working as an ASP.NET developer in
I am a Java programmer moving to .NET development and have about 5 years
I come from a strong Java background and in recent years have been also
I have years of Java experience on Eclipse and now would like to get
I'm re-learning c++ (I have 10 years Java experience) and I'm also learning Qt
I have 2 1/2 years experience of VB.Net, mostly self taught, so please bear
I am a .NET Developer with about 5 years of web development experience using
Firstly, Im new to android but have years of various other programming experience on
I have a couple of years of experience developing native Android apps, and was
I am working for first time with vb.net code, but I have 5 years

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.