[android-developers] Content Provider Question

2010-09-27 Thread Adam Hammer
I think I've got to write a content provider for handling a add-on
style architecture for my app.

If I have 2 seperate providers, different .apks and manifests, and
lets say one has the authority

content://my.authority.com/addon1
and the second
content://my.authority.com/addon2

They are both installed and registered. If I do a query on
content://my.authority.com will it come back with both addon1 and
addon2 in the result set?

Basically can you query what tables are available, and not just the
table itself? Will the content resolver sort that out even though it's
not in either actual providers authority?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Content Provider Question

2010-10-01 Thread Mark Murphy
On Sat, Sep 25, 2010 at 6:37 PM, Adam Hammer  wrote:
> I think I've got to write a content provider for handling a add-on
> style architecture for my app.

Why?

> If I have 2 seperate providers, different .apks and manifests, and
> lets say one has the authority
>
> content://my.authority.com/addon1
> and the second
> content://my.authority.com/addon2

That's not supposed to work. AFAIK, the second one will fail to be
used (and I would have expected it to fail to install), since it
attempts to use the same authority (my.authority.com).

> They are both installed and registered. If I do a query on
> content://my.authority.com will it come back with both addon1 and
> addon2 in the result set?

I doubt it.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 2.2 Programming Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en