Faber Fedor wrote:
> So the class name goes into the manifest.  what is my CONTENT_URI then?
> I'm assuming it's "content://com.appspot.lbtdl".  Since I have a table
> called "locations", I'll access all of the locations with
> "content://com.appspot.lbtdl/locations", right?

You can. There's nothing forcing that pattern, though.

What *is* magic is that there is a public static final Uri named
CONTENT_URI, and that this Uri is the base Uri for your provider, and
that it begins with content://.

The use of a namespaced value as the first segment after the content://
prefix is a convention to prevent collisions, just as Java namespaces
themselves tend to be based off of domain names, to prevent collisions.

> That's just done in the declaration, of the class right?  There's
> nothing else that needs to be done.

Correct.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to