Giter VIP home page Giter VIP logo

fitbit-api-example-android's People

Contributors

jbfitb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fitbit-api-example-android's Issues

Step by step tutorial

Is it possible to create more detailed documentation so that it can be easier for beginners to implement the application themselves?

SSL Error

I am trying to run this sample to authenticate FitBit account and trying to get token. I need to authenticate in my Android app. Just need token.

When I tap to Login button that navigates me to Login Screen but before providing credentials, a dialog appears that shows some SSL error.

Quick response will be much appreciated.

Thanks

Project configuration error

When trying to compile i get:

A problem occurred configuring project ':app'.
Failed to notify project evaluation listener.
javax/xml/bind/annotation/XmlSchema

currentAccessToken = null

Steps

  1. Create app as per steps
  2. Install app on a device. The app works fine
  3. Now install same app on another device and login thr' same email account which was used in step2.

Issue

  1. The app do not works on 2nd device. After some time the app does not works on 1st device also.

Note-

  1. The app retrieves intra-day heart rate data.

failed to run project

Many of the dependencies don't work any more. tried to build the app but it kept failing. currently updated SDK version to 27 but no fix yet. Is there an apk I can install?

Not able to get daily steps for a particular day

I've tried to modify the bindActivityData function to return the step value for a particular day. I've tried the following:

Steps_ daily = activities.getBest().getTracker().getSteps();
daily.setDate("2016-12-18");
Integer dailySteps = daily.getValue();

I've also tried using tracker vs tracker_ and lifetime vs best to try and get different step values, but I am only able to get the number of steps for the first day w/ step values for a given fitbit account.

OnActivityResult method is deprecated

Is there any suggestions for fixing this deprecation in the RootActivity? I have tried looking into the new methods using ActivityResultLauncher but have not been able to get anything to work. Any help is appreciated.

Add a license

Please add a license to let others know what they are allowed to do with this library.

Not getting WebApi response

Hello,
I am unable to get profile,settings,activity,weight data.

Token is generated but not getting data.

Any help will be appreciated.

Thanks

Fatal bugs in the Activity page

Hi friends, did anyone know what's the fatal bug in the UserDataActivity? Whenever I open the ACTIVITY page, the app was forced to stop. The log of the error is as follows. Could you give me some hints to debug it? Thanks.

02-28 09:31:00.719 701-915/? V/AudioPolicyEffects: releaseOutputSessionEffects: no output processing was attached to this stream 02-28 09:31:00.760 15414-15414/com.fitbit.sampleandroidoauth2 D/AndroidRuntime: Shutting down VM 02-28 09:31:00.761 15414-15414/com.fitbit.sampleandroidoauth2 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.fitbit.sampleandroidoauth2, PID: 15414 java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 at com.fitbit.sampleandroidoauth2.fragments.WeightLogFragment.bindWeightLogs(WeightLogFragment.java:78) at com.fitbit.sampleandroidoauth2.fragments.WeightLogFragment.onLoadFinished(WeightLogFragment.java:59) at com.fitbit.sampleandroidoauth2.fragments.WeightLogFragment.onLoadFinished(WeightLogFragment.java:27) at android.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:489) at android.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:457) at android.content.Loader.deliverResult(Loader.java:144) at android.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:265) at android.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:92) at android.os.AsyncTask.finish(AsyncTask.java:667) at android.os.AsyncTask.-wrap1(AsyncTask.java) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6121) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779) 02-28 09:31:00.763 1555-4043/? W/ActivityManager: Force finishing activity com.fitbit.sampleandroidoauth2/.UserDataActivity 02-28 09:31:00.766 1555-4043/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger

Git Diff for latest Android Studio 4.1.1

git diff
diff --git a/SampleAndroidOAuth2/app/build.gradle b/SampleAndroidOAuth2/app/build.gradle
index 34c11d7..1848cbc 100644
--- a/SampleAndroidOAuth2/app/build.gradle
+++ b/SampleAndroidOAuth2/app/build.gradle
@@ -1,13 +1,13 @@
apply plugin: 'com.android.application'

android {

  • compileSdkVersion 25
  • buildToolsVersion "24.0.3"
  • compileSdkVersion 28 //25

  • // buildToolsVersion "24.0.3"

    defaultConfig {
    applicationId "com.fitbit.sampleandroidoauth2"

  •    minSdkVersion 16
    
  •    targetSdkVersion 25
    
  •    minSdkVersion 18
    
  •    targetSdkVersion 28
       versionCode 1
       versionName "1.0"
    
    }
    @@ -22,6 +22,7 @@ android {
    }
    }

+/*
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':fitbitapi')
@@ -33,3 +34,16 @@ dependencies {

 testCompile 'junit:junit:4.+'

}
+*/
+
+dependencies {

  • compileOnly fileTree(dir: 'libs', include: ['*.jar'])
  • compileOnly project(':fitbitapi')
  • compileOnly project(':fitbitauth')
  • implementation 'com.android.support:appcompat-v7:25.+'
  • implementation 'com.android.support:design:25.+'
  • implementation 'com.android.support:support-v13:25.+'
  • implementation 'com.jjoe64:graphview:4.+'
  • // testCompile 'junit:junit:4.+'
    +}
    \ No newline at end of file
    diff --git a/SampleAndroidOAuth2/build.gradle b/SampleAndroidOAuth2/build.gradle
    index 74b2ab0..3819a61 100644
    --- a/SampleAndroidOAuth2/build.gradle
    +++ b/SampleAndroidOAuth2/build.gradle
    @@ -1,5 +1,5 @@
    // Top-level build file where you can add configuration options common to all sub-projects/modules.

+/*
buildscript {
repositories {
jcenter()
@@ -21,3 +21,23 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}
+*/
+buildscript {

  • repositories {
  •    jcenter()
    
  •    google()
    
  • }
  • dependencies {
  •    classpath 'com.android.tools.build:gradle:3.4.0'
    
  • }
    +}

+allprojects {

  • repositories {
  •    google()
    
  •    jcenter()
    
  •    maven {
    
  •        url "https://jitpack.io"
    
  •    }
    
  • }
    +}

I also updated the gradle.properties files to
distributionUrl=https://services.gradle.org/distributions/gradle-5.1.1-all.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.