├── MigrateContacts ├── tools │ ├── .gitignore │ ├── setup.sh │ ├── setup.bat │ ├── ide │ │ └── eclipse │ │ │ ├── classpath │ │ │ └── project │ ├── eclipse.xml │ ├── migrate.properties │ └── project.properties ├── libs │ └── .gitignore ├── res │ ├── drawable-hdpi │ │ ├── conflict.png │ │ └── ic_launcher.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── values │ │ ├── colors.xml │ │ ├── dimens.xml │ │ └── styles.xml │ ├── xml │ │ ├── prefs.xml │ │ └── pref_headers.xml │ ├── layout │ │ ├── spinner_conflict_text.xml │ │ └── activity_contacts.xml │ └── menu │ │ └── menu.xml ├── .gitignore ├── src-schema │ └── com │ │ └── enterpriseandroid │ │ └── migratecontacts │ │ └── Contact.java ├── src │ └── com │ │ └── enterpriseandroid │ │ └── migratecontacts │ │ ├── PrefsFragment.java │ │ ├── PrefsActivity.java │ │ └── BaseActivity.java ├── proguard-project.txt ├── build-schema.xml └── AndroidManifest.xml ├── springServiceContacts ├── build.properties ├── tools │ └── ide │ │ └── eclipse │ │ ├── settings │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.apache.ivyde.eclipse.prefs │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── .jsdtscope │ │ └── org.eclipse.wst.common.component │ │ ├── classpath │ │ └── project ├── WebContent │ └── META-INF │ │ └── MANIFEST.MF ├── .gitignore ├── src │ ├── jdbc.properties │ ├── com │ │ └── enterpriseandroid │ │ │ └── springServiceContacts │ │ │ ├── dao │ │ │ ├── VersionNotMatchException.java │ │ │ └── ContactDao.java │ │ │ └── service │ │ │ └── ContactService.java │ ├── hibernateAnnotation.cfg.xml │ ├── unit │ │ └── test │ │ │ └── dao │ │ │ ├── DaoHibernateTest.java │ │ │ └── DaoJdbcTest.java │ └── log4j.xml ├── contact.jdbc.sql └── ivy-settings.xml ├── springSyncServiceContacts ├── build.properties ├── tools │ └── ide │ │ └── eclipse │ │ ├── settings │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.apache.ivyde.eclipse.prefs │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── .jsdtscope │ │ └── org.eclipse.wst.common.component │ │ ├── classpath │ │ └── project ├── WebContent │ └── META-INF │ │ └── MANIFEST.MF ├── .gitignore ├── src │ ├── jdbc.properties │ ├── com │ │ └── enterpriseandroid │ │ │ └── springServiceContacts │ │ │ ├── dao │ │ │ ├── VersionNotMatchException.java │ │ │ └── ContactDao.java │ │ │ └── service │ │ │ └── ContactService.java │ ├── hibernateAnnotation.cfg.xml │ ├── log4j.xml │ └── unit │ │ └── test │ │ └── dao │ │ ├── DaoJdbcTest.java │ │ └── DaoHibernateTest.java └── contact.jdbc.sql ├── awsServiceContacts ├── tools │ └── ide │ │ └── eclipse │ │ ├── settings │ │ ├── org.eclipse.wst.jsdt.ui.superType.name │ │ ├── org.eclipse.wst.jsdt.ui.superType.container │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.eclipse.jdt.core.prefs │ │ ├── .jsdtscope │ │ └── org.eclipse.wst.common.component │ │ ├── classpath │ │ └── project ├── src │ ├── main │ │ ├── webapp │ │ │ ├── META-INF │ │ │ │ └── MANIFEST.MF │ │ │ └── WEB-INF │ │ │ │ └── web.xml │ │ ├── resources │ │ │ └── com │ │ │ │ └── enterpriseandroid │ │ │ │ └── awsContacts │ │ │ │ └── dao │ │ │ │ └── impl │ │ │ │ └── AwsCredentials.properties │ │ └── java │ │ │ ├── com │ │ │ └── enterpriseandroid │ │ │ │ └── awsContacts │ │ │ │ ├── dao │ │ │ │ ├── VersionNotMatchException.java │ │ │ │ └── ContactDao.java │ │ │ │ └── service │ │ │ │ └── ContactService.java │ │ │ └── log4j.xml │ ├── log4j.xml │ ├── spring │ │ └── applicationContext-storage.xml │ └── test │ │ └── java │ │ └── unit │ │ └── test │ │ └── dao │ │ ├── Dyanmodbv2DaoTest.java │ │ └── Dynamodbv1DaoTest.java ├── .gitignore └── ivy-settings.xml ├── KeyValDB ├── res │ ├── values │ │ └── strings.xml │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ └── layout │ │ └── keyval_row.xml ├── src │ └── com │ │ └── enterpriseandroid │ │ └── database │ │ ├── sql │ │ └── SQLSamples.java │ │ └── keyval │ │ └── simple │ │ ├── data │ │ └── KeyValContract.java │ │ └── KeyValApplication.java ├── .gitignore ├── tools │ ├── setup.sh │ ├── setup.bat │ ├── ide │ │ └── eclipse │ │ │ ├── classpath │ │ │ └── project │ ├── eclipse.xml │ └── project.properties ├── LICENSE ├── proguard-project.txt └── AndroidManifest.xml ├── FragmentFramework ├── .gitignore ├── res │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-ldpi │ │ └── icon.png │ ├── drawable-mdpi │ │ └── icon.png │ ├── layout │ │ ├── list_frag_list.xml │ │ ├── detail.xml │ │ ├── content.xml │ │ ├── main.xml │ │ └── content_control_activity.xml │ ├── menu │ │ ├── control_menu.xml │ │ └── search_menu.xml │ └── values │ │ └── strings.xml ├── tools │ ├── eclipse.xml │ └── ide │ │ └── eclipse │ │ ├── classpath │ │ └── project ├── project.properties ├── AndroidManifest.xml └── proguard.cfg ├── KeyValCP ├── res │ ├── drawable │ │ ├── ic_x.png │ │ └── ic_check.png │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── menu │ │ └── menu.xml │ └── layout │ │ └── activity_extras.xml ├── .gitignore ├── tools │ ├── setup.sh │ ├── setup.bat │ ├── ide │ │ └── eclipse │ │ │ ├── classpath │ │ │ └── project │ ├── eclipse.xml │ └── project.properties ├── LICENSE └── proguard-project.txt ├── KeyValClient ├── res │ ├── drawable │ │ ├── ic_x.png │ │ └── ic_check.png │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── values │ │ └── strings.xml │ └── layout │ │ └── activity_extras.xml ├── .gitignore ├── tools │ ├── setup.sh │ ├── setup.bat │ ├── ide │ │ └── eclipse │ │ │ ├── classpath │ │ │ └── project │ ├── eclipse.xml │ └── project.properties ├── LICENSE └── proguard-project.txt ├── MigrateClinic ├── libs │ └── migrate-api.jar ├── res │ ├── drawable-hdpi │ │ └── ic_launcher.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── xml │ │ ├── prefs.xml │ │ └── pref_headers.xml │ ├── menu │ │ └── menu.xml │ ├── values │ │ └── styles.xml │ └── layout │ │ ├── activity_patients.xml │ │ └── xray_row.xml ├── .gitignore ├── tools │ ├── setup.sh │ ├── setup.bat │ ├── ide │ │ └── eclipse │ │ │ ├── classpath │ │ │ └── project │ ├── eclipse.xml │ └── project.properties ├── src │ └── com │ │ └── enterpriseandroid │ │ └── migrateclinic │ │ ├── data │ │ ├── Patient.java │ │ ├── XRay.java │ │ ├── PatientContract.java │ │ └── XRayContract.java │ │ ├── PrefsFragment.java │ │ └── PrefsActivity.java ├── migrate.properties └── proguard-project.txt ├── googleAppEngineContacts ├── ivy │ └── ivy.jar ├── war │ ├── favicon.ico │ ├── WEB-INF │ │ ├── logging.properties │ │ └── appengine-web.xml │ └── index.html ├── .gitignore ├── build.properties ├── tools │ └── ide │ │ └── eclipse │ │ └── settings │ │ ├── com.google.gdt.eclipse.core.prefs │ │ ├── org.eclipse.wst.common.project.facet.core.xml │ │ ├── org.apache.ivyde.eclipse.prefs │ │ ├── org.eclipse.jdt.core.prefs │ │ └── com.google.appengine.eclipse.core.prefs └── src │ ├── com │ └── enterpriseandroid │ │ └── googleappengineContacts │ │ ├── contact │ │ ├── GoogleAppEngineContactsServlet.java │ │ └── util │ │ │ └── EntityManagerFactoryHelper.java │ │ ├── dao │ │ ├── VersionNotMatchException.java │ │ └── ContactDao.java │ │ └── service │ │ └── ContactService.java │ ├── META-INF │ └── persistence.xml │ └── spring │ └── applicationContext-storage.xml ├── syncAdapterContacts ├── AccountMgr.png ├── libs │ └── gson-2.2.1.jar ├── res │ ├── drawable │ │ ├── ic_launcher.png │ │ ├── ic_menu_sync1.png │ │ ├── ic_menu_sync2.png │ │ └── ic_menu_account.png │ ├── xml │ │ ├── sync.xml │ │ ├── prefs.xml │ │ ├── pref_headers.xml │ │ ├── account.xml │ │ └── account_prefs.xml │ ├── layout │ │ └── activity_contacts.xml │ └── menu │ │ └── menu.xml ├── .gitignore ├── tools │ ├── setup.sh │ ├── setup.bat │ ├── ide │ │ └── eclipse │ │ │ ├── classpath │ │ │ └── project │ ├── eclipse.xml │ └── project.properties ├── proguard-project.txt └── src │ └── com │ └── enterpriseandroid │ └── syncadaptercontacts │ ├── sync │ ├── AccountService.java │ └── SyncService.java │ └── PrefsActivity.java ├── AndroidSecurity ├── res │ ├── drawable │ │ └── icon.png │ ├── raw │ │ ├── keystore2.p12 │ │ └── your_ownca_keystore.bks │ ├── values │ │ ├── arrays.xml │ │ └── strings.xml │ ├── menu │ │ └── main.xml │ └── layout │ │ ├── select_action_activity.xml │ │ ├── main.xml │ │ ├── login_successful.xml │ │ └── auth_token_activity.xml ├── libs │ ├── android-support-v4.jar │ ├── commons-lang-2.6.jar │ └── org.apache.commons.codec-1.3.0.jar ├── .gitignore ├── tools │ ├── eclipse.xml │ ├── ide │ │ └── eclipse │ │ │ ├── classpath │ │ │ └── project │ └── project.properties ├── build.xml ├── src │ └── com │ │ └── enterpriseandroid │ │ └── androidSecurity │ │ ├── SendBroadcastActivity.java │ │ ├── LoginSuccessfulActivity.java │ │ └── BaseActivity.java ├── ant.properties └── proguard-project.txt ├── Contactscontractexample ├── res │ ├── values │ │ ├── styles.xml │ │ └── strings.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ ├── drawable-hdpi │ │ ├── ic_launcher.png │ │ └── ic_action_search.png │ ├── drawable-mdpi │ │ ├── ic_launcher.png │ │ └── ic_action_search.png │ ├── drawable-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_action_search.png │ ├── menu │ │ ├── table_menu.xml │ │ └── search_menu.xml │ ├── layout │ │ ├── content.xml │ │ ├── detail.xml │ │ ├── data_only.xml │ │ ├── main.xml │ │ └── list_frag_list.xml │ └── layout-large │ │ └── main.xml ├── libs │ └── android-support-v13.jar ├── .classpath ├── project.properties ├── .settings │ └── org.eclipse.jdt.core.prefs ├── proguard-project.txt ├── .project └── AndroidManifest.xml ├── HumanInterfaceForData ├── res │ ├── values │ │ ├── styles.xml │ │ └── strings.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ ├── drawable-hdpi │ │ ├── ic_launcher.png │ │ └── ic_action_search.png │ ├── drawable-mdpi │ │ ├── ic_launcher.png │ │ └── ic_action_search.png │ ├── drawable-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_action_search.png │ ├── menu │ │ ├── search_menu.xml │ │ └── share_menu.xml │ └── layout │ │ ├── content.xml │ │ ├── detail.xml │ │ ├── main.xml │ │ ├── list_frag_list.xml │ │ └── data_only.xml ├── libs │ └── android-support-v4.jar ├── FragmentBasics │ ├── libs │ │ └── android-support-v4.jar │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-ldpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ └── strings.xml │ │ └── layout │ │ │ ├── news_articles.xml │ │ │ └── article_view.xml │ └── project.properties ├── .classpath ├── project.properties ├── .settings │ └── org.eclipse.jdt.core.prefs ├── proguard-project.txt ├── .project └── AndroidManifest.xml ├── restfulCachingProviderContacts ├── res │ ├── drawable │ │ └── ic_launcher.png │ ├── xml │ │ ├── prefs.xml │ │ └── pref_headers.xml │ ├── menu │ │ └── menu.xml │ └── layout │ │ └── activity_contacts.xml ├── .gitignore ├── tools │ ├── setup.sh │ ├── setup.bat │ ├── ide │ │ └── eclipse │ │ │ ├── classpath │ │ │ └── project │ ├── eclipse.xml │ └── project.properties ├── proguard-project.txt └── src │ └── com │ └── enterpriseandroid │ └── restfulcontacts │ └── PrefsActivity.java ├── README_tomcat ├── README_ivy ├── README_mysql └── README_windows /MigrateContacts/tools/.gitignore: -------------------------------------------------------------------------------- 1 | none 2 | -------------------------------------------------------------------------------- /springServiceContacts/build.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /springSyncServiceContacts/build.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /MigrateContacts/libs/.gitignore: -------------------------------------------------------------------------------- 1 | preventdirectoryfromgettingdeletedi 2 | -------------------------------------------------------------------------------- /awsServiceContacts/tools/ide/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /springServiceContacts/tools/ide/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /springSyncServiceContacts/tools/ide/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.name: -------------------------------------------------------------------------------- 1 | Window -------------------------------------------------------------------------------- /springServiceContacts/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /awsServiceContacts/src/main/webapp/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /springSyncServiceContacts/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /KeyValDB/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | SimpleKeyVal 4 | 5 | -------------------------------------------------------------------------------- /FragmentFramework/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_* 2 | .checkstyle 3 | .classpath 4 | .project 5 | .settings 6 | /bin 7 | /gen 8 | lint.xml 9 | -------------------------------------------------------------------------------- /KeyValCP/res/drawable/ic_x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wileyenterpriseandroid/Examples/HEAD/KeyValCP/res/drawable/ic_x.png -------------------------------------------------------------------------------- /KeyValCP/res/drawable/ic_check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wileyenterpriseandroid/Examples/HEAD/KeyValCP/res/drawable/ic_check.png -------------------------------------------------------------------------------- /KeyValClient/res/drawable/ic_x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wileyenterpriseandroid/Examples/HEAD/KeyValClient/res/drawable/ic_x.png -------------------------------------------------------------------------------- /MigrateClinic/libs/migrate-api.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wileyenterpriseandroid/Examples/HEAD/MigrateClinic/libs/migrate-api.jar -------------------------------------------------------------------------------- /awsServiceContacts/tools/ide/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /googleAppEngineContacts/ivy/ivy.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wileyenterpriseandroid/Examples/HEAD/googleAppEngineContacts/ivy/ivy.jar -------------------------------------------------------------------------------- /syncAdapterContacts/AccountMgr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wileyenterpriseandroid/Examples/HEAD/syncAdapterContacts/AccountMgr.png -------------------------------------------------------------------------------- /AndroidSecurity/res/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wileyenterpriseandroid/Examples/HEAD/AndroidSecurity/res/drawable/icon.png -------------------------------------------------------------------------------- /AndroidSecurity/res/raw/keystore2.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wileyenterpriseandroid/Examples/HEAD/AndroidSecurity/res/raw/keystore2.p12 -------------------------------------------------------------------------------- /KeyValClient/res/drawable/ic_check.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wileyenterpriseandroid/Examples/HEAD/KeyValClient/res/drawable/ic_check.png -------------------------------------------------------------------------------- /awsServiceContacts/.gitignore: -------------------------------------------------------------------------------- 1 | /.gradle 2 | /build 3 | /build.ant 4 | /bin 5 | /ivy 6 | .checkstyle 7 | .classpath 8 | .project 9 | .settings -------------------------------------------------------------------------------- /springServiceContacts/tools/ide/eclipse/settings/org.eclipse.wst.jsdt.ui.superType.container: -------------------------------------------------------------------------------- 1 | org.eclipse.wst.jsdt.launching.baseBrowserLibrary -------------------------------------------------------------------------------- /Contactscontractexample/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /MigrateContacts/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /AndroidSecurity/ant.properties: -------------------------------------------------------------------------------- 1 | # This file is used to override default values used by the Ant build system. 2 | # 3 | # This file must be checked into Version Control Systems, as it is 4 | # integral to the build system of your project. 5 | 6 | # This file is only used by the Ant script. 7 | 8 | # You can use this to override default values such as 9 | # 'source.dir' for the location of your java source folder and 10 | # 'out.dir' for the location of your output folder. 11 | 12 | # You can also use it define how the release builds are signed by declaring 13 | # the following properties: 14 | # 'key.store' for the location of your keystore and 15 | # 'key.alias' for the name of the key to use. 16 | # The password will be asked during the build when you use the 'release' target. 17 | 18 | -------------------------------------------------------------------------------- /awsServiceContacts/src/main/java/com/enterpriseandroid/awsContacts/dao/ContactDao.java: -------------------------------------------------------------------------------- 1 | package com.enterpriseandroid.awsContacts.dao; 2 | 3 | import java.io.IOException; 4 | import java.util.List; 5 | 6 | import com.enterpriseandroid.awsContacts.dataModel.Contact; 7 | 8 | public interface ContactDao { 9 | Contact getContact(String userId, String id) throws IOException ; 10 | String storeOrUpdateContact(String userId, Contact contact) throws IOException ; 11 | List findContactFirstName(String userId, String firstName, int start, int numOfmatches); 12 | List findChanged(String userId, long timestamp, int start, int numOfmatches); 13 | void delete(String userId, String id) throws IOException ; 14 | List getAll(String userId, int start, int numOfmatches) throws IOException ;; 15 | } 16 | -------------------------------------------------------------------------------- /springServiceContacts/src/com/enterpriseandroid/springServiceContacts/service/ContactService.java: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Zane Pan 3 | */ 4 | package com.enterpriseandroid.springServiceContacts.service; 5 | 6 | import com.enterpriseandroid.springServiceContacts.dataModel.Contact; 7 | 8 | import java.io.IOException; 9 | import java.util.List; 10 | 11 | public interface ContactService { 12 | void storeOrUpdateContact(Contact c) throws IOException ; 13 | List findContactByFirstName(String firstName, int start, int numOfmatches) throws IOException; 14 | List getAll( int start, int numOfmatches) throws IOException; 15 | Contact getContact(Long id) throws IOException ; 16 | void deleteContact(Long id) throws IOException; 17 | List findChanged(long timestamp, int start, int numOfmatches); 18 | } 19 | -------------------------------------------------------------------------------- /MigrateClinic/res/layout/activity_patients.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 13 | 14 |