Git Product home page Git Product logo

motoactv_export's People

Contributors

superdavex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

motoactv_export's Issues

Exception when populating spinner list

In onCreate of MainActivity.java line 171-193 (try-catch), the following query on line 178:

Cursor csum =getContentResolver().query(DataUtil. CONTENT_URI_WORKOUT_ACTIVITY_SUMMARY, null, "workout_activity_id = " + id + " and metric_id = 4",null, null);

can return a "nothing" when encountering a workout summary that has no metric_id of 4. This occurs with workouts like weight lifting and I assume it is because there is no distance. This causes an exception on generation of the spinner items does not complete,

06-16 23:14:27.139 1793 1793 D sd_motoactv_export: Error loading activities:android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

hence workouts after the exception won't show in the spinner and cannot be manually exported.

Either there has to nested try catch or at test for a "good" csum after the query so that more items can be processed by the while loop and get added to the spinner. There isn't a big issue with ignoring workouts without distance as a solution and has the least impact to the rest of the code.

Cant export to runkeeper auto or manual

When I try to export on the device to runkeeper, I just get a "this page may have been moved".

Also, when I try to upload the tcx file from the sdcard, it is not a valid tcx file and can't be imported.

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.