Not all Googlers agree with that position, let alone other schmucks like me. I only use a ContentProvider for sharing data between processes.
Up vote 0 down vote favorite share g+ share fb share tw.
I am working on a set of novelty applications that share their fundamental behavior (picking random words from a database and combining them). Because they all work BASICALLY the same, I tried to treat the base of the code as a template of some sort, with mixed results. As I am working on an update, I wanted to make the project a little more MVC friendly and started looking into using a ContentProvider instead of a straight SQLiteOpenHelper.
I am leaning this way because Google's documentation is INCREDIBLY adamant about using them. My issue is in the realm of naming collision. TL;DR Skip here for the question.
If two 3rd party Android applications (made by the same developer) both want to use the same ContentProvider, but not rely on another application being installed, can they both include a copy of the ContentProvider (with the same authority and everything) and be allowed to be installed at the same time (using the highest version of the ContentProvider available)? I am not sure if this is possible with the way content providers are set up, which seems monolithic. I can't imagine Google didn't see this as a potential problem or desired feature.
Yes, some complexities could arise, but we have overcome dll hell and other similarly named problems... it can't be all that difficult to do right. Android library contentprovider android-contentprovider sqliteopenhelper link|improve this question asked Sep 20 '11 at 8:39Jessy Diamond Exum406 57% accept rate.
I am leaning this way because Google's documentation is INCREDIBLY adamant about using them. Not all Googlers agree with that position, let alone other schmucks like me. I only use a ContentProvider for sharing data between processes.
If two 3rd party Android applications (made by the same developer) both want to use the same ContentProvider, but not rely on another application being installed, can they both include a copy of the ContentProvider (with the same authority and everything) and be allowed to be installed at the same time (using the highest version of the ContentProvider available)? AFAIK, the first ContentProvider registered would win, not the highest version. In fact, I'm not sure the second app will install if it attempts to redefine an existing ContentProvider.
Moreover, if the user uninstalls the current ContentProvider, the other app is screwed, since its data now goes "poof".
That is what I kinda expected, but hoped against since the model I brought brought up would make so much more sense (to me). I was really just hoping there was some xml setting I wasn't aware of that let applications share ownership over a ContentProvider. Oh well :(.
If anyone does know of some round about way to do this, I would be very happy to know. – Jessy Diamond Exum Sep 20 '11 at 21:09.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.