Fixed: PW5 and Android 4.4 KitKat-No write access to SD card

Questions and problems
Ulmer.Spatz
Posts: 84
Joined: Sun Jul 01, 2012 4:15 pm

Fixed: PW5 and Android 4.4 KitKat-No write access to SD card

Postby Ulmer.Spatz » Mon Aug 11, 2014 10:55 pm

Has PW5 with Android 4.4 KitKat Problems writing to SD card?
Last edited by Ulmer.Spatz on Mon Aug 18, 2014 3:01 pm, edited 2 times in total.

Ulmer.Spatz
Posts: 84
Joined: Sun Jul 01, 2012 4:15 pm

Postby Ulmer.Spatz » Wed Aug 13, 2014 1:03 pm

Hi Scott,
I have tested it (PathAwayPro5810307 Pre-Releas). An export of tracks to the SD card does not work. The internal memory already.
I suppose PW can no longer write to the SD card with Android 4.4 KitKat. Is that correct?

Look here: External storage access
http://developer.android.com/about/vers ... d-4.4.html

User avatar
Scott
Site Admin
Posts: 1033
Joined: Mon Apr 18, 2005 8:49 pm
Location: Ontario, Canada
Contact:

Postby Scott » Wed Aug 13, 2014 6:47 pm

In Android 4.4 Reading from the external card is working. Writing is not. This was an intended action by Google for security purposes so Apps can't mess up other Apps files. I really don't understand why this restriction was implemented since the files are supposed to be public. If the Apps need protection, then they can write to their private protected area of the card. "Public" means you're taking the risk of other Apps accessing your files, and want to share these files across Apps. Hopefully this policy will be changed.

We'll need to modify the App to write to the specially designated folder on the external sdcard so you can export to the card.

User avatar
Scott
Site Admin
Posts: 1033
Joined: Mon Apr 18, 2005 8:49 pm
Location: Ontario, Canada
Contact:

Postby Scott » Wed Aug 13, 2014 9:00 pm

Here is the workaround to Export files to the Storage card on Android OS 4.4 KitKat. Because of the new restrictions, the only folder that can be written to is the App's designated storage folder. On the external SDCard, this is:

PathAway PRO: <sdCard>/Android/Data/com.muskokatech.PathAwayPro/files
PathAway Express: <sdCard>/Android/Data/com.muskokatech.PathAway/files
PathAway LE: <sdCard>/Android/Data/com.muskokatech.PathAwayLE/files
PathAway Free: <sdCard>/Android/Data/com.muskokatech.PathAwayFree/files

Note that these folders are deleted if you uninstall the App, so you should move any files out that you want to save for later before uninstalling. If you're just updating the App over the current version, then these files are retained.

This applies to the external SDcard storage only. The folders on the device memory operate as always.

Ulmer.Spatz
Posts: 84
Joined: Sun Jul 01, 2012 4:15 pm

Postby Ulmer.Spatz » Wed Aug 13, 2014 11:02 pm

Scott,
I have created the path / Folder (PW pro). As stated by you.
But it does not work. Error exporting.

User avatar
Scott
Site Admin
Posts: 1033
Joined: Mon Apr 18, 2005 8:49 pm
Location: Ontario, Canada
Contact:

Postby Scott » Thu Aug 14, 2014 12:32 am

The Full Path is the <sdCard>/Android/data/com.muskokatech...
ie. On Samsung it is likely /storage/extSdCard/Android/data/com.muskokatech.PathAwayPro/files

Ulmer.Spatz
Posts: 84
Joined: Sun Jul 01, 2012 4:15 pm

Postby Ulmer.Spatz » Fri Aug 15, 2014 9:31 pm

Hi Scott,
The export of tracks and routes working properly.
Even in self-created folder.
The update you've done very quickly. Since others can take an example.

Thank you very much.


Return to “PathAway for Android - Support”

Who is online

Users browsing this forum: No registered users and 1 guest