├── AndroidManifest.xml ├── default.properties ├── res ├── drawable │ └── icon.png ├── layout │ └── login_activity.xml ├── values │ └── strings.xml └── xml │ ├── authenticator.xml │ ├── contacts.xml │ └── syncadapter.xml └── src └── com ├── example └── android │ └── samplesync │ ├── Constants.java │ ├── authenticator │ ├── AuthenticationService.java │ ├── Authenticator.java │ └── AuthenticatorActivity.java │ ├── client │ ├── NetworkUtilities.java │ └── User.java │ ├── platform │ ├── BatchOperation.java │ ├── ContactManager.java │ ├── ContactOperations.java │ └── SampleSyncAdapterColumns.java │ └── syncadapter │ ├── SyncAdapter.java │ └── SyncService.java └── puny └── android └── network └── util └── DrupalJSONServerNetworkUtilityBase.java /AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 24 | 26 | 28 | 30 | 32 | 34 | 36 | 38 | 40 | 42 | 44 | 46 | 48 | 49 | 52 | 53 | 56 | 57 | 59 | 60 | 63 | 64 | 67 | 68 | 70 | 71 | 74 | 77 | 78 | 84 | 88 | 89 | 90 | 92 | -------------------------------------------------------------------------------- /default.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "build.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-7 12 | -------------------------------------------------------------------------------- /res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jbeuckm/Android-SyncAdapter-JSON-Server-Example/81667842a97bffb3f8927a0f38660237ac3115c2/res/drawable/icon.png -------------------------------------------------------------------------------- /res/layout/login_activity.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 24 | 28 | 37 | 43 | 49 | 59 | 66 | 74 | 85 | 91 | 92 | 93 | 101 |