Hello,
I'm using watchPcc.requestDownloadNewActivities and watchPcc.requestDownloadAllActivities to get activities from my sportwatch.
I register a antFsProgessUpdateReceiver but the event TRANSPORT_DOWNLOADING is not always sent, sometimes I receive no event during transaction, sometimes all, sometimes a part only.
Otherwise activity are well transferred.
With your demo program, the same issue happens the progress bar doesn't move.
When event is sent, the values I receive are:
totalBytes=total bytes for all activities
transferredBytes=current bytes tranferred for current activity, it starts again from 0 for each activity (strange but manageable)
public void onNewAntFsProgressUpdate(AntFsState state,
long transferredBytes, long totalBytes) {
switch (state) {
case TRANSPORT_DOWNLOADING:
currentActivityTransfered = Long.valueOf(transferredBytes).intValue();
int total = Long.valueOf(totalBytes).intValue();
sendDownloadProgressMsg(currentTransfered + currentActivityTransfered, total);
break;
default:
//ignore
break;
}
Can you reproduce the issue on your side ?
Thanks.
PS:
I'm using the last version of SDK antpluginlib_3-0-0-RC1.jar.
My phone is an LG G2 with ant enabler and my watch is a Garmin Forunner 310 XT.