cancel
Showing results for 
Search instead for 
Did you mean: 

OvrStoragePaths to access sdcard on an S7?

craigmcn
Honored Guest
I've got a custom video playing app that's working fine for media located on the internal storage of an S7, but can't convince the OvrStoragePaths class to look at the correct paths on the SD card.   The SD card is mounted at /storage/6531-6364, not /storage/extSdCard.  Looking at the search paths found when its initialized, I get

06-09 14:26:00.835  4960  4960 I PathUtils: StorageFolderPaths[2][0] = /storage/extSdCard/
06-09 14:26:00.835  4960  4960 I PathUtils: StorageFolderPaths[2][1] = /storage/6531-6364/Android/data/com.xxx.xxx/files/
06-09 14:26:00.835  4960  4960 I PathUtils: StorageFolderPaths[2][2] = /storage/6531-6364/Android/data/com.xxx.xxx/cache/

(this is from 
StorageFolderPaths[EST_SECONDARY_EXTERNAL_STORAGE][EFT_ROOT] = GetDir( "getSecondaryExternalStorageRootDir", VrActivityClass, &java );
StorageFolderPaths[EST_SECONDARY_EXTERNAL_STORAGE][EFT_FILES] = GetDir2( "getSecondaryExternalStorageFilesDir", VrActivityClass, &java );
StorageFolderPaths[EST_SECONDARY_EXTERNAL_STORAGE][EFT_CACHE] = GetDir2( "getSecondaryExternalStorageCacheDir", VrActivityClass, &java );
in VRAppFramework/src/PathUtils.cpp)

It's finding the correct path for the files and and cache, but not for the the root folder (/storage/extSdCard/ doesn't exist)

It'd be much easier for our client to be able look at the root folder of the sd card rather than digging into the Android/data/com... folder, any ideas how to get that correct "/storage/6531-6364/" as the root of the SD card?  It doesn't seem like the 6531-6364 is a name I can trust on different phones/cards...

Cheers,

Craig.

0 REPLIES 0