Home | History | Annotate | only in /developers/build/prebuilts/gradle/BasicSyncAdapter
Up to higher level directory
NameDateSize
.google/10-Mar-2015
Application/10-Mar-2015
build.gradle16-Dec-201410
CONTRIB.md16-Dec-20141.6K
CONTRIBUTING.md10-Mar-20151.5K
gradle/16-Dec-2014
gradlew16-Dec-20145K
gradlew.bat16-Dec-20142.3K
LICENSE16-Dec-201411.1K
NOTICE10-Mar-2015613
packaging.yaml16-Dec-2014498
README.md10-Mar-20152.6K
screenshots/10-Mar-2015
settings.gradle16-Dec-201422

README.md

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