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

The Archive Base Latest Questions

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

We could insert data into database without using the Uri. But when we are

  • 0

We could insert data into database without using the Uri. But when we are using contentResolver we need the Uri to do anything.

Like getContentResolver().insert(CONTENT_URI, values); But in Database query execution we do not need any Uri. Like db.execSQL(String query);. Why is 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-27T00:22:57+00:00Added an answer on May 27, 2026 at 12:22 am

    While I think this question is about to be closed, I think what you are asking is why when you use a content resolver you have to use a CONTENT_URI, but when using a database you dont?

    Content Provider

    This is because Content Resolvers provide more functionality than just a database

    Content providers store and retrieve data and make it accessible to
    all applications. They’re the only way to share data across
    applications; there’s no common storage area that all Android packages
    can access.

    Android ships with a number of content providers for common data types
    (audio, video, images, personal contact information, and so on). You
    can see some of them listed in the android.provider package. You can
    query these providers for the data they contain (although, for some,
    you must acquire the proper permission to read the data).

    When a query is initiated, the Android system identifies the content
    provider that’s the target of the query and makes sure that it is up
    and running.

    Database

    With a database, it is not accessible from ANY application via a Content Provider (unless you write one). Using db.execSQL, you are only querying your database and not a content provider, thus you don’t need to provide a CONTENT_URI. Your db object IS the data store.

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

Sidebar

Related Questions

I'd like to insert data into a mysql table using 'the cakephp way'. I
I am trying to insert/add a data into my Database but it seems that
I want to insert data into SQL Server database when I click Insert button
I am trying to INSERT some data into a database. I can do this
Could anyone tell me how to bulk insert data from a ref cursor to
Im searching for a very high performant possibility to insert data into a MS
Hallo, I want to get data into a database on a multicore system with
I have 2 questions: 1-I need to parse XML file and insert the data
I'm using Python and its MySQLdb module to import some measurement data into a
I'm trying parse an xml file and insert it into an mysql database. The

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.