├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── modules.xml ├── compiler.xml └── gradle.xml ├── Examples └── HelloUp │ ├── .gitignore │ ├── .idea │ ├── .name │ ├── scopes │ │ └── scope_settings.xml │ ├── modules.xml │ ├── encodings.xml │ ├── vcs.xml │ ├── libraries │ │ ├── volley.xml │ │ ├── jackson_core_2_2_3.xml │ │ ├── jackson_databind_2_2_3.xml │ │ ├── jackson_annotations_2_2_3.xml │ │ ├── appcompat_v7_19_1_0.xml │ │ └── support_v4_19_1_0.xml │ ├── gradle.xml │ ├── compiler.xml │ └── misc.xml │ ├── src │ └── main │ │ ├── res │ │ ├── drawable-hdpi │ │ │ ├── btn_black.9.png │ │ │ ├── jawbone_appicon.png │ │ │ └── jawbone_button.png │ │ ├── drawable-mdpi │ │ │ └── btn_black.9.png │ │ ├── drawable-xhdpi │ │ │ ├── btn_black.9.png │ │ │ ├── jawbone_button.png │ │ │ └── jawbone_appicon.png │ │ ├── drawable-xxhdpi │ │ │ ├── btn_black.9.png │ │ │ ├── jawbone_appicon.png │ │ │ └── jawbone_button.png │ │ ├── values │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ ├── dimens.xml │ │ │ ├── attrs.xml │ │ │ └── styles.xml │ │ ├── layout │ │ │ ├── up_api_list.xml │ │ │ └── hello_up.xml │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ └── values-v11 │ │ │ └── styles.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── jawbone │ │ └── helloup │ │ ├── HelloUpActivity.java │ │ └── UpApiListActivity.java │ ├── local.properties │ ├── proguard-rules.txt │ └── build.gradle ├── UpPlatformSdk ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── strings.xml │ │ │ └── dimens.xml │ │ └── layout │ │ │ └── oauth_webview.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── jawbone │ │ └── upplatformsdk │ │ ├── datamodel │ │ ├── Data.java │ │ ├── Links.java │ │ ├── DataCollection.java │ │ └── Meta.java │ │ ├── api │ │ ├── response │ │ │ └── OauthAccessTokenResponse.java │ │ ├── ApiHeaders.java │ │ ├── ApiManager.java │ │ └── RestApiInterface.java │ │ ├── oauth │ │ ├── OauthWebViewActivity.java │ │ └── OauthUtils.java │ │ └── utils │ │ └── UpPlatformSdkConstants.java ├── proguard-rules.txt └── build.gradle ├── settings.gradle ├── .gitignore ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── Documentation └── project_structure.png ├── gradle.properties ├── gradlew.bat ├── gradlew ├── README.md └── LICENSE /.idea/.name: -------------------------------------------------------------------------------- 1 | UPPlatform_Android_SDK -------------------------------------------------------------------------------- /Examples/HelloUp/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/.name: -------------------------------------------------------------------------------- 1 | HelloUp -------------------------------------------------------------------------------- /UpPlatformSdk/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':UpPlatformSdk', ':Examples:HelloUp' 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | .DS_Store 5 | /build 6 | -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Documentation/project_structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Documentation/project_structure.png -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/UpPlatformSdk/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/UpPlatformSdk/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/UpPlatformSdk/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/UpPlatformSdk/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | UpPlatformAndroidSdk 4 | 5 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-hdpi/btn_black.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-hdpi/btn_black.9.png -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-mdpi/btn_black.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-mdpi/btn_black.9.png -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-xhdpi/btn_black.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-xhdpi/btn_black.9.png -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-xxhdpi/btn_black.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-xxhdpi/btn_black.9.png -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #66000000 4 | #FFFFFF 5 | 6 | 7 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-hdpi/jawbone_appicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-hdpi/jawbone_appicon.png -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-hdpi/jawbone_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-hdpi/jawbone_button.png -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-xhdpi/jawbone_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-xhdpi/jawbone_button.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-xhdpi/jawbone_appicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-xhdpi/jawbone_appicon.png -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-xxhdpi/jawbone_appicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-xxhdpi/jawbone_appicon.png -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/drawable-xxhdpi/jawbone_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jawbone/UPPlatform_Android_SDK/HEAD/Examples/HelloUp/src/main/res/drawable-xxhdpi/jawbone_button.png -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/scopes/scope_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hello UP 5 | Press button to connect 6 | 7 | 8 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | 7 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/libraries/volley.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Jul 10 09:18:51 PDT 2014 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=http\://services.gradle.org/distributions/gradle-2.10-all.zip 7 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/libraries/jackson_core_2_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/libraries/jackson_databind_2_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/libraries/jackson_annotations_2_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/layout/up_api_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/res/layout/oauth_webview.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 10 | -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/java/com/jawbone/upplatformsdk/datamodel/Data.java: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Omer Muhammed 3 | * Copyright 2014 (c) Jawbone. All rights reserved. 4 | * 5 | */ 6 | package com.jawbone.upplatformsdk.datamodel; 7 | 8 | public class Data { 9 | 10 | public String xid; 11 | 12 | public String getXid() { 13 | return xid; 14 | } 15 | 16 | public void setXid(String xid) { 17 | this.xid = xid; 18 | } 19 | } 20 | 21 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/libraries/appcompat_v7_19_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Examples/HelloUp/local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Mon Jul 07 13:03:26 PDT 2014 11 | sdk.dir=/Applications/android-sdk-macosx 12 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/libraries/support_v4_19_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/java/com/jawbone/upplatformsdk/datamodel/Links.java: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Omer Muhammed 3 | * Copyright 2014 (c) Jawbone. All rights reserved. 4 | * 5 | */ 6 | package com.jawbone.upplatformsdk.datamodel; 7 | 8 | public class Links { 9 | 10 | public String next; 11 | public String prev; 12 | 13 | public String getNext() { 14 | return next; 15 | } 16 | 17 | public void setNext(String next) { 18 | this.next = next; 19 | } 20 | 21 | public String getPrev() { 22 | return prev; 23 | } 24 | 25 | public void setPrev(String prev) { 26 | this.prev = prev; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/java/com/jawbone/upplatformsdk/datamodel/DataCollection.java: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Omer Muhammed 3 | * Copyright 2014 (c) Jawbone. All rights reserved. 4 | * 5 | */ 6 | package com.jawbone.upplatformsdk.datamodel; 7 | 8 | public class DataCollection { 9 | 10 | public Links links; 11 | 12 | public int size; 13 | 14 | public Links getLinks() { 15 | return links; 16 | } 17 | 18 | public void setLinks(Links links) { 19 | this.links = links; 20 | } 21 | 22 | public int getSize() { 23 | return size; 24 | } 25 | 26 | public void setSize(int size) { 27 | this.size = size; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | 11 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /UpPlatformSdk/proguard-rules.txt: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Applications/android-sdk-macosx/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the ProGuard 5 | # include property in project.properties. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} -------------------------------------------------------------------------------- /UpPlatformSdk/src/main/java/com/jawbone/upplatformsdk/api/response/OauthAccessTokenResponse.java: -------------------------------------------------------------------------------- 1 | /** 2 | * @author Omer Muhammed 3 | * Copyright 2014 (c) Jawbone. All rights reserved. 4 | * 5 | */ 6 | package com.jawbone.upplatformsdk.api.response; 7 | 8 | /** 9 | * Note that since this is the call for accessToken, the server response is not 10 | * of the form: 11 | * { 12 | * “meta”: { ... Response Metadata ... }, 13 | * “data”: { ... Resource or Collection ... } 14 | * } 15 | * 16 | * All other API calls have this response format 17 | */ 18 | 19 | public class OauthAccessTokenResponse { 20 | public int expires_in; 21 | public String token_type; 22 | public String access_token; 23 | public String refresh_token; 24 | } 25 | -------------------------------------------------------------------------------- /Examples/HelloUp/proguard-rules.txt: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Applications/android-sdk-macosx/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the ProGuard 5 | # include property in project.properties. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | -------------------------------------------------------------------------------- /Examples/HelloUp/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Examples/HelloUp/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 18 | 19 |