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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:42:00+00:00 2026-05-23T17:42:00+00:00

To all, If you watch the Google IO session on building Android REST apps

  • 0

To all,

If you watch the Google IO session on building Android REST apps they are suggesting in all three design patterns to use Content Providers regardless if you need to share data or not.

If you look at the Content Provider class doc at http://developer.android.com/reference/android/content/ContentProvider.html they say you only need to use a content provider if you plan on sharing your data with other applications.

My application does NOT need to share any data with other applications so is using a Content provider overkill? And if so why does the Google IO REST video imply that it should be used in all scenarios?

-= Update =-

Talks are here https://dl.google.com/googleio/2010/android-developing-RESTful-android-apps.pdf.

  • 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-23T17:42:01+00:00Added an answer on May 23, 2026 at 5:42 pm

    There’s no real right or wrong answer to this question but I’m strongly in the use a content provider camp for the reasons below.

    You get a well-defined, easy-to-use CRUD interface for your data. Once you’ve written a Contract and your Provider methods, it’s just a couple of lines to start retrieving data. When you come to work on the project later, or you hire another developer, you’ll be up to speed in minutes.

    Lots of classes in the Android framework are designed to work with content providers. In particular, CursorLoaders are brilliant, and you’ll have to do a fair amount of work to emulate their functionality on your own. Good luck with managing the cursor lifecycle within an activity, in addition to writing all of your own data retrieval code and asynchronous tasks. There are various nuances and things to take care of. This will take a while.

    Updating or inserting rows often? It’s pretty easy to notify ListViews and other Cursor consumers of changes via the ContentProvider. If you’re not using a ContentProvider, you’ll have to write your own Observers and manage it yourself.

    Want to integrate the Quick Search Box, or apply some powerful filtering to a ListView? Again, it’s simple if you’re using Cursors and ContentProviders, and a whole load of work if you’re not.

    If, in future, you decide to open up your data to other apps, you’ll end up writing a ContentProvider anyway. Remember, you can still use ContentProviders without allowing other apps to modify your data.

    I could (and may) expand on this post further but hopefully you get the idea. Google use providers in great apps like iosched for a reason.

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

Sidebar

Related Questions

Last month I'm working on web site witch use Google Maps and all is
I am trying to use inotifywait to watch all .js files under my ~/js
I watch all of these Android tutorials online and am getting more and more
I want to watch all the HTTP requests going out of a certain application
I was wondering if there's a way to watch all RoutedEvents that are raised
All the articles I've found via google are either obsolete or contradict one another.
I'm trying to understand the data pipelines talk presented at google i/o: http://www.youtube.com/watch?v=zSDC_TU7rtc I
In the inotifywait man changes the following is stated -r, --recursive Watch all subdirectories
http://www.youtube.com/watch?v=gZNdfVwkttM - you can see all of the problem described on this video if
Fist of all , I would say thank you to watch my post. Secondly,

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.