5,601,062 Members 46,315 Now Online
XDA Developers Android and Mobile Development Forum

MOTOACTV TCX Exporter

Tip us?
 
superdave
Old
(Last edited by superdave; 21st February 2013 at 06:56 PM.)
#1  
Senior Member - OP
Thanks Meter 88
Posts: 184
Join Date: Feb 2005

 
DONATE TO ME
Default MOTOACTV TCX Exporter

Attached is a custom service for the MOTOACTV that will export the workout data table to a TCX file on the SD Card. The TCX file will be automatically created every time a workout ends and will be named with the unique id of the workout. This app is a work in progress, try at your own risk.

,Dave

Version 1.1
Service now exports Garmin TCX file.
Added export app to manually export workouts.

Version 1.2.
Lap Heart Beat Average skipped if 0.
Skip Lat/Lon if not valid

Version 1.3
Corrected naming of auto entered lap.

Version 1.4
Added workout activity lap check and use default value of 6 hrs for 1 lap duration if not found.

Version 1.5
*Apps changed to a release key, uninstall of old version required before install.
Added DistanceMeters to trackpoints
Corrected issue where workout id was being used instead of workout activity id for lap details lookup.

Version 1.6
Combined manual app and service into one app. The previous two apps will need to be removed before installing.
Corrected issue with sport type for biking
Added power
Corrected issue with run cadence and biking cadence.

Version 1.7
Added steps to lap details
Uses workout sub activity (intervals) if available for lap details.

Version 1.8
Changed TCX filename to include Timestamp
Added Settings (Use menu then Click settings to access)
Added DropBox auto export (must enable in settings) *In Testing
Added Google Drive auto export (must enable in settings) *In Testing
Added Runkeeper auto post with Facebook option (must enable in settings) *In Testing

Version 1.9
Corrected issue with default value of local TCX pref (was set to false instead of true)
Corrected issue with manual exporting requiring wifi for local TCX only export.

Version 1.10
Corrected Wifi state on preference change check.
Added settings button to main form (scroll up to see it)

Version 1.11
Improved user interface for settings
Added auto Wifi disable on app exit (optional)
Added Wifi enable button.
Removed automatic Wifi enable and waiting.

Known Issues:
Lap info not calculated correctly after pausing and resuming a workout.
---------------------------------------------------------------------------------------
ADB Commands

#Install
adb install Motoactv_export.apk


#Uninstall
adb uninstall com.sdsoft.motoactv_export
adb uninstall com.sdsoft.sd_csv (if coming from old version)

#Start Motoactv_export without having a launcher
adb shell am start -n com.sdsoft.motoactv_export/com.sdsoft.motoactv_export.MainActivity

#View debug logs
# For Motoactv export launch the app, run the following command then click export
adb logcat MainActivity:V *:S
adb logcat AndroidRuntime:V *:S

# For the service run the following command, start and stop a workout, then click End workout .
adb logcat SYNC_Service:V *:S
adb logcat AndroidRuntime:V *:S

* Added optional modified settings.apk that has an Export TCX option that will launch the manual TCX exporter app. Only use if your on stock roms or your settings.apk has not already been modified.
# To install
adb remount
adb push Settings.apk /system/app
adb reboot
Attached Files
File Type: apk Settings.apk - [Click for QR Code] (2.05 MB, 510 views)
File Type: apk Motoactv_export.apk - [Click for QR Code] (160.4 KB, 472 views)
File Type: zip Motoactv_export_1.11.zip - [Click for QR Code] (257.8 KB, 492 views)
The Following 18 Users Say Thank You to superdave For This Useful Post: [ Click to Expand ]
 
jmcourir
Old
#2  
jmcourir's Avatar
Senior Member
Thanks Meter 23
Posts: 140
Join Date: Feb 2009
Location: Riviere-du-Loup, Québec

 
DONATE TO ME
Hi SuperDave,

Thank you very much for that nice app! I really enjoy it!
I tested it yesterday with SportTracks and it works great! continue your good job!

Well Done!

JmCourir
Rated 5 --> Excellent thread
 
superdave
Old
#3  
Senior Member - OP
Thanks Meter 88
Posts: 184
Join Date: Feb 2005

 
DONATE TO ME
Thanks JmCourir,

Glad its working for you.
The Following 2 Users Say Thank You to superdave For This Useful Post: [ Click to Expand ]
 
jmcourir
Old
(Last edited by jmcourir; 21st August 2012 at 06:54 PM.)
#4  
jmcourir's Avatar
Senior Member
Thanks Meter 23
Posts: 140
Join Date: Feb 2009
Location: Riviere-du-Loup, Québec

 
DONATE TO ME
Yes, it woks perfectly with
http://www.zonefivesoftware.com/sporttracks/

I recommend this excellent app for all serious trainers out there!

JmCourir

---------- Post added at 06:24 PM ---------- Previous post was at 06:12 PM ----------

Hi Superdave,

Are you able to add steps per minute ? or overall steps of a workout? Steps per day in the tcx file?
If you can do it, I'll ask Sporttracks if they can add this to their software.*

Also, if I use a cadence sensor for bike, does your app still export this kind of data?



Thanks
JmCourir
 
two_wheels
Old
#5  
Junior Member
Thanks Meter 0
Posts: 21
Join Date: Jul 2007
How does the import into Sport tracks work? Do you connect the Motoactv via USB, copy the tcx files to your computer then import? Or does Sport tracks connect directly to the Motoactv like the other Garmin devices?

Thanks
 
superdave
Old
#6  
Senior Member - OP
Thanks Meter 88
Posts: 184
Join Date: Feb 2005

 
DONATE TO ME
JmCourir,

The bike cadence is supported and should export as part of the tcx. I'm not currently doing steps. It looks like they are part of the ActivityLapExtension (http://developer.garmin.com/schemas/...ionv1.xsd.html) Is that where you are looking to see the steps at the lap level or is it at the trackpoint level?

,Dave
 
jmcourir
Old
#7  
jmcourir's Avatar
Senior Member
Thanks Meter 23
Posts: 140
Join Date: Feb 2009
Location: Riviere-du-Loup, Québec

 
DONATE TO ME
Quote:
Originally Posted by two_wheels View Post
How does the import into Sport tracks work? Do you connect the Motoactv via USB, copy the tcx files to your computer then import? Or does Sport tracks connect directly to the Motoactv like the other Garmin devices?

Thanks
Hi Two_wheels,

When you open SportTracks, you clic Import and browse into the sdcard of Motoactv and select the file TCX.
Very very quick and easy.

JmCourir

---------- Post added at 08:10 PM ---------- Previous post was at 08:02 PM ----------

Quote:
Originally Posted by superdave View Post
JmCourir,

The bike cadence is supported and should export as part of the tcx. I'm not currently doing steps. It looks like they are part of the ActivityLapExtension (http://developer.garmin.com/schemas/...ionv1.xsd.html) Is that where you are looking to see the steps at the lap level or is it at the trackpoint level?

,Dave
Hi Dave,
I don't know what ActivityExtension do and what trackpoint level do

I'd like to see steps per lap, average steps per minutes, total daily steps ?
Is this possible?

Thanks
JmCourir
The Following User Says Thank You to jmcourir For This Useful Post: [ Click to Expand ]
 
superdave
Old
#8  
Senior Member - OP
Thanks Meter 88
Posts: 184
Join Date: Feb 2005

 
DONATE TO ME
Extensions are addon to the tcx format. The only one I found that supports steps is at the laps level. It looks like its a total steps for the lap. TrackPoints are the individual data points that make up a lap. I can get the data for total steps per lap, step avg per lap and steps per trackpoint, but, the only one I see in the tcx format is the steps per lap. Does sportstrack support that or the others?
 
cdjadex
Old
#9  
Junior Member
Thanks Meter 0
Posts: 10
Join Date: Jul 2010
Default Stupid question

This looks awesome, I have a quick question before I get to work on rooting my device, is this something I have to do after each workout or can I wait for a couple of workouts and then click export and it will generate all of their files?
 
superdave
Old
#10  
Senior Member - OP
Thanks Meter 88
Posts: 184
Join Date: Feb 2005

 
DONATE TO ME
The service will automatically create a tcx export on your sdcard after the end of every workout. They are uniquely named and can be pulled off at anytime. The manual exporter is more to get at older workouts and the same thing applies, it will create the file and you can pull it of any time you want.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes