com.raywenderlich.contentprovidertodo.provider
. A content URI can also
perform pattern matches using content URIs that include wildcard characters.
•
*
– Matches a string of any valid characters of any length.
•
#
– Matches a string of numeric characters of any length.
Now that you've learned a little bit about content providers, it is time to create one
of your own.
GeTng Started
Locate this chapter's folder in the provided materials, named
content-provider
, and
open up the
projects
folder. Next, open the
ContentProviderToDo
app under the
starter
folder. Allow the project to sync, download dependencies, and setup the
workplace environment. For now, ignore the errors in the code.
Adding the provider package
It is a good idea to keep the provider classes in their own package. You will also
include the contract class in this package. Right click on the
Do'stlaringiz bilan baham: |