When to use a Content Provider

0 votes
I am aware that Content Providers are designed to permit open data sharing between applications. But I'm curious if anyone has ideas for creating a Content Provider that would only be used within your own app. Would doing this have any advantages? Exist any drawbacks?

To retrieve data from my database in the past, I just used the SQliteOpenHelper; however, I'm thinking about constructing a Content Provider. The URI method of requesting data seems to me to be simple and direct. However, since my application will contain a SQliteOpenHelper class, will have a Content Provider solely for it to be redundant and require more work than I need?
Nov 23 in Android by Edureka
• 12,390 points
13 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Android

0 votes
1 answer

Android: When should I use a Handler() and when should I use a Thread?

Because Chrome V8 is a JavaScript engine, ...READ MORE

answered Nov 10 in Android by Edureka
• 10,880 points
33 views
0 votes
1 answer
0 votes
0 answers
0 votes
0 answers

android 3d live wallpaper - what engine to use?

I was curious about how this live ...READ MORE

Nov 15 in Android by Edureka
• 12,390 points
28 views
0 votes
0 answers

What do I have to do with the A Href link?

How do I set up the anchor ...READ MORE

Nov 16 in Android by Edureka
• 10,880 points
14 views
0 votes
0 answers

How to define a circle shape in an Android XML drawable file?

I'm having some trouble locating the Android ...READ MORE

Nov 22 in Android by Edureka
• 10,880 points
43 views
0 votes
1 answer

Running docker on Android

According to the documentation, the Android kernel is ...READ MORE

answered Aug 1, 2018 in Docker by Kalgi
• 52,350 points
3,027 views
0 votes
1 answer

Task Canceled Exception while invoking AWS Lambda

I'm guessing either the TaskCanceledException instance is ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 58,100 points
1,661 views
0 votes
1 answer

Is there a way to run Python on Android?

YES! An example via Matt Cutts via SL4A -- "here’s ...READ MORE

answered Sep 19, 2018 in Python by Priyaj
• 58,100 points
471 views
0 votes
1 answer

How can we get the current location in Android?

First you need to define a LocationListener to handle ...READ MORE

answered Sep 25, 2018 in Java by Parth
• 4,630 points
426 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP