AnsweredAssumed Answered

User home folder on samsung android device

Question asked by paul.haakma on Nov 2, 2016
Latest reply on Dec 5, 2016 by SQuan-esristaff

Hi all.


Am having an issue with accessing the user home folder on a Samsung Android device.


I've tested these variations:


AppFramework.userHomeFolder.path +  "/myFolder"
AppFramework.userHomePath +"/myFolder"

They all seem to return the path of "/sdcard"

Then any attempt to create a folder fails with just a generic 'Error creating' message.


if (!exists){makeFolder()}

The device doesn't have an sdcard in it. My question is, why is it returning the path of '/sdcard'?

As a comparison, Survey123 appears to use the "~/myFolder" approach, and works fine on this device. So I'm not sure why I'm experiencing a different result.

Using this:
AppFramework.standardPaths.standardLocations(StandardPaths.HomeLocation)[0] + "/myFolder"

Allows me to create a folder and get the app to work, but the location is not the location that Survey123 accesses, and is obviously not visible when I plug the device into a pc and try to browse the file system.

Any suggestions welcome.