jareddlc / OpenFit

Open source application for the Samsung Gear Fit
MIT License
87 stars 48 forks source link

Sync running activity to Google Fit #30

Closed etatus closed 8 years ago

etatus commented 8 years ago

I'd like to purchase premium version but, do you plan to support running activity syncing to Google Fit? I think running is one of the most common activities performed with Gear Fit.

jareddlc commented 8 years ago

I do plan supporting. I've been quite busy lately, hopefully #32 will work as expected.

etatus commented 8 years ago

In fact, I'm already a premium user and I have some issues: phone hangs (black screen) from time to time, probably when syncing. BTW, how does syncing works? Do you set a marker to avoid syncing data that have already been synced before to reduce the transfer time? (it can take a while) I'll let you know when I have more information from logcat, but the problem seems to be related to having more exercise data than pedometer data in gear fit when syncing.

jareddlc commented 8 years ago

released v1.8.0 which should include this feature.

etatus commented 8 years ago

This is the partial logcat ouput of v1.8.0 when my phone hangs just after sync starts... I have Omnirom with android 5.1.1 and this happens from time to time (not always). Any clue about what could be the problem?

Thanks!

03-23 12:56:13.031 24965-24965/com.solderbyte.openfit D/OpenFit:Fitness: remaining buffer: 0
03-23 12:56:13.051 24965-24965/com.solderbyte.openfit D/OpenFit:OpenFitService: startFitnessSync
03-23 12:56:13.051 24965-24965/com.solderbyte.openfit D/OpenFit:OpenFitService: gFit.setData
03-23 12:56:13.051 24965-24965/com.solderbyte.openfit D/OpenFit:GoogleFit: setData
03-23 12:56:13.051 24965-24965/com.solderbyte.openfit D/OpenFit:OpenFitService: gFit.syncData
03-23 12:56:13.051 24965-24965/com.solderbyte.openfit D/OpenFit:GoogleFit: syncing data
03-23 12:56:13.064 24965-25027/com.solderbyte.openfit D/OpenFit:GoogleFit: readDataTask
03-23 12:56:13.097 24965-24965/com.solderbyte.openfit D/OpenFit:OpenFitFragment: Received Service Command: fitness
03-23 12:56:13.097 24965-24965/com.solderbyte.openfit D/OpenFit:OpenFitFragment: Fitness
03-23 12:56:13.097 24965-24965/com.solderbyte.openfit D/OpenFit:GoogleFit: setData
03-23 12:56:13.325 24965-24972/com.solderbyte.openfit W/art: Suspending all threads took: 8.478ms
03-23 12:56:14.803 4891-4905/com.google.android.gms.persistent I/art: Background sticky concurrent mark sweep GC freed 51503(2MB) AllocSpace objects, 13(208KB) LOS objects, 16% free, 10MB/12MB, paused 3.795ms total 337.007ms
03-23 12:56:15.160 1800-1863/com.android.bluetooth D/btif_config_util: btif_config_save_file(L188): in file name:/data/misc/bluedroid/bt_config.new
03-23 12:56:18.936 4891-4905/com.google.android.gms.persistent I/art: Background sticky concurrent mark sweep GC freed 36636(1391KB) AllocSpace objects, 0(0B) LOS objects, 11% free, 10MB/12MB, paused 1.371ms total 159.659ms
03-23 12:56:20.386 4891-4891/com.google.android.gms.persistent D/TrustAgent: [BluetoothTrustlet] Regular device Gear Fit (3B69) can grant trust.
03-23 12:56:23.375 4891-4905/com.google.android.gms.persistent W/art: Suspending all threads took: 9.170ms
03-23 12:56:23.447 4891-4905/com.google.android.gms.persistent I/art: Background sticky concurrent mark sweep GC freed 21848(777KB) AllocSpace objects, 0(0B) LOS objects, 6% free, 11MB/12MB, paused 27.331ms total 125.927ms
03-23 12:56:25.069 4891-4905/com.google.android.gms.persistent I/art: Background partial concurrent mark sweep GC freed 66348(2MB) AllocSpace objects, 0(0B) LOS objects, 29% free, 9MB/13MB, paused 8.234ms total 266.467ms
03-23 12:56:25.353 24965-24972/com.solderbyte.openfit W/art: Suspending all threads took: 7.138ms
03-23 12:56:25.402 24965-24977/com.solderbyte.openfit I/art: Background sticky concurrent mark sweep GC freed 24155(2MB) AllocSpace objects, 2(29KB) LOS objects, 26% free, 5MB/7MB, paused 4.741ms total 134.670ms
jareddlc commented 8 years ago

1.8.1 release, please test

etatus commented 8 years ago

With other smartphones seems to work fine. Maybe is an issue related to an unstable Omnirom version. We can close this issue.

Thank you!