Unable to access files outside <appid> directory in /mnt/sdcard

You must Login before you can answer or comment on any questions.

Hello

The getExternalStorageDirectory function returns /mnt/sdcard/<appid> as the path in my android application. I have some files at another location on the sdcard. Is there any way I can access it?

3 Answers

Have you tried simply /mnt/sdcard/ ?

Hi you can try to get your file by

Titanium.Filesystem.getFile(Titanium.Filesystem.getExternalStorageDirectory( ) + Titanium.Filesystem.getSeparator( ) + <imgfilename>..... where you think your files are);
 
this file path can be made dynamic as per need.

Your Answer

Think you can help? Login to answer this question!