• Home
Name Date Size #Lines LOC

..--

.google/03-May-2024-2217

Application/03-May-2024-3,3681,477

gradle/wrapper/03-May-2024-76

screenshots/03-May-2024-

CONTRIB.mdD03-May-20241.6 KiB3627

CONTRIBUTING.mdD03-May-20241.5 KiB3627

LICENSED03-May-202411.1 KiB202169

NOTICED03-May-2024613 1611

README.mdD03-May-20242.6 KiB7654

build.gradleD03-May-202410 110

gradlewD03-May-20245 KiB165122

gradlew.batD03-May-20242.3 KiB9166

packaging.yamlD03-May-2024498 1610

settings.gradleD03-May-202422 21

README.md

1Android BasicSyncAdapter Sample
2===================================
3
4This sample demonstrates using SyncAdapter to fetch background
5data for an app. It covers the creation of the required Service
6that the OS uses to initiate the background data sync as well as
7scheduling syncs with background data.
8
9Introduction
10------------
11
12This sample demonstrates using SyncAdapter to fetch background data
13for an app. SyncAdapters can be used to execute your data transfer
14code at configurable intervals, while efficiently using battery and
15other system resources.
16
17This sample implements all the required elements of a sync adapter.
18- Creates a sync adapter class.
19- Creates a bound Service which the OS uses to initiate a sync.
20- Defines the sync adapter properties in an XML resource file.
21- Declares the bound Service in the app manifest.
22
23For more on SyncAdapters refer to [Transferring Data Using Sync Adapters][1]
24
25[1]: http://developer.android.com/training/sync-adapters/index.html
26
27Pre-requisites
28--------------
29
30- Android SDK v21
31- Android Build Tools v21.1.1
32- Android Support Repository
33
34Screenshots
35-------------
36
37<img src="screenshots/main.png" height="400" alt="Screenshot"/>
38
39Getting Started
40---------------
41
42This sample uses the Gradle build system. To build this project, use the
43"gradlew build" command or use "Import Project" in Android Studio.
44
45Support
46-------
47
48- Google+ Community: https://plus.google.com/communities/105153134372062985968
49- Stack Overflow: http://stackoverflow.com/questions/tagged/android
50
51If you've found an error in this sample, please file an issue:
52https://github.com/googlesamples/android-BasicSyncAdapter
53
54Patches are encouraged, and may be submitted by forking this project and
55submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
56
57License
58-------
59
60Copyright 2014 The Android Open Source Project, Inc.
61
62Licensed to the Apache Software Foundation (ASF) under one or more contributor
63license agreements.  See the NOTICE file distributed with this work for
64additional information regarding copyright ownership.  The ASF licenses this
65file to you under the Apache License, Version 2.0 (the "License"); you may not
66use this file except in compliance with the License.  You may obtain a copy of
67the License at
68
69http://www.apache.org/licenses/LICENSE-2.0
70
71Unless required by applicable law or agreed to in writing, software
72distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
73WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
74License for the specific language governing permissions and limitations under
75the License.
76