sportablet
  • home
  • the app
  • answers
  • contacts
  • links
  • blog
Got a smartphone or a small-screen tablet? check out the Uploader for Garmin!

Android 6 (marshmallow) and file-based garmin devices

3/20/2016

0 Comments

 
Note: this is relevant ONLY for file-based devices like the Edge family, FR 110, some handhelds, etc. It doesn't affect ANT+ devices and serial devices like the FR305. For a list of file-based garmin devices, see the answers page above.


With Android 6 google is making changes to the way external media are handled. This is relatively good news for nexus owners and bad news for everyone else (unless the manufacturer of your phone/tablet is smart enough not to follow google on this; many didn't follow them on their nexus madness, but it seems like LG, motorola and HTC are following them on this :-().

So the story is: third-party apps no longer have (direct) access to external storage. External storage won't be found by enumerating the file system as my app does when it's looking for a garmin. Forcing a path won't work either, because any path that you may recover is not really accessible by third party apps. Only the internal file manager that they baked in can access external media (as I said, it's a step forward for nexus devices that couldn't even do that, but it's a big step backward for everyone else).

If you find yourself in that case, you have to go through a number of steps to keep using my app:

this must be done only once:
- create a folder somewhere, like /mnt/sdcard/garmin
- set that folder in my app using the force FILES path option (NOT force flash drive path). Remember that paths in android are case sensitive.

this must be done every time:
- use the built-in file manager to copy new files from your device to that folder. You'll find your files under Activities or History depending on your garmin model. In some cases (file-based handhelds) the current tracklog will be under the GPX folder.
- then run my app and click on get activities as usual. The app will only read new files, so don't worry if you don't remember what you already imported something, it's safe.

Note: you must use the built-in file manager. Other file managers, being third-party apps themselves, won't be able to access external media.

I'm exploring possible workarounds, but this is not something that I can simply bypass. It's a security measure that, if accepted by manufacturers, is designed to prevent direct access to third-party apps. So far I have a prototype working where you can select files from the internal file manager and then use the built-in feature to "share" them to my app. You still need to navigate to the right folder using the internal file manager and select the files, but you don't have to copy them in a fixed folder. Still looking for better alternatives. Of course, rooting + stickmount should probably work anyway, but it's not for everyone.

To stay current on this issue, please follow sportablet on facebook or twitter. I use the account only to tell you guys about news, there is no marketing going on there : )



​
0 Comments

    About me

    I'm a decent runner, ex mountain biker, and a good swimmer. I created Sportablet to squeeze a little more fun out of my Forerunner.

    In my everyday life,  I design software-intensive systems at different scales, using a number of paradigms, languages and technologies. ​
    You can read some of my thoughts at carlopescio.com

    Picture

    Archives

    September 2019
    March 2019
    May 2018
    September 2017
    May 2017
    March 2017
    February 2017
    September 2016
    July 2016
    March 2016
    May 2015
    March 2015
    February 2015
    November 2014
    September 2014
    August 2014
    July 2014
    April 2014
    March 2014
    February 2014
    November 2013
    September 2013
    August 2013
    July 2013
    June 2013
    May 2013
    April 2013
    March 2013
    February 2013
    January 2013
    December 2012
    November 2012
    September 2012
    August 2012
    July 2012
    June 2012
    May 2012
    April 2012
    March 2012

    Categories

    All
    Announce
    Beta
    New Features
    Supported Devices

    RSS Feed

Powered by Create your own unique website with customizable templates.