Lines Matching full:provider
13 <li><a href="#RunDataChange">Run the Sync Adapter When Content Provider Data Changes</a></li>
68 implement if you actually store data in your content provider. If you're using a stub
69 content provider, detecting data changes may be more difficult.
131 // Content provider authority
132 public static final String AUTHORITY = "com.example.android.datasync.provider"
171 <h2 id="RunDataChange">Run the Sync Adapter When Content Provider Data Changes</h2>
173 If your app collects data in a content provider, and you want to update the server whenever
174 you update the provider, you can set up your app to run your sync adapter automatically. To do
175 this, you register an observer for the content provider. When data in your content provider
176 changes, the content provider framework calls the observer. In the observer, call
181 <strong>Note:</strong> If you're using a stub content provider, you don't have any data in
182 the content provider and {@link android.database.ContentObserver#onChange onChange()} is
188 To create an observer for your content provider, extend the class
198 provider framework compares this watch URI to content URIs passed in as arguments to
199 {@link android.content.ContentResolver} methods that modify your provider, such as
214 // Content provider scheme
216 // Content provider authority
217 public static final String AUTHORITY = "com.example.android.datasync.provider";
218 // Path for the content provider table
223 // A content URI for the content provider's data table
225 // A content resolver for accessing the provider
231 * observed content provider changes.
245 * observed content provider changes.
264 // Construct a URI that points to the content provider data table
272 * Its code does not mutate the provider, so set
319 // Content provider authority
320 public static final String AUTHORITY = "com.example.android.datasync.provider";
324 // A content resolver for accessing the provider
352 sync adapter at the same time, you are likely to overload your server and cell provider data
394 // Content provider authority
395 public static final String AUTHORITY = "com.example.android.datasync.provider";
405 // A content resolver for accessing the provider
476 // Content provider authority
478 "com.example.android.datasync.provider"