Android Question External Storage and File.DirAssets

Feten7

Member
Licensed User
Hi,

I have a doubt. If i allow my app to install in the external Storage:

<quote> #CanInstallToExternalStorage: True </quote>

How can it be i still have to copy a video to the external storage?

<quote>
File.Copy(File.DirAssets, "help.mp4",File.DirDefaultExternal, "help.mp4")
vv.LoadVideo(File.DirDefaultExternal, "help.mp4")
</quote>

If i don't include the first line to copy it, it won't play it.

It seems weird to me because it should be in the external storage once i give it permission to install there.
 

Feten7

Member
Licensed User
Thank you Erel! Ok, I understand. So, always i want to take a file i put in the .apk, i must look for it in DirAssets but, if i want to save anything, i must use DirDefaultexternal.
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
if i want to save anything, i must use DirDefaultexternal.
You can also save it in File.DirRootExternal. which makes it a little easier to find, unless you want to make it harder to find. However if saved to File.DirRootExternal, when you uninstall the app, the file will still remain on the device.
Sorry about the <quote> marks, i made a mistake, i should have written <code>
It is [ code] and [ /code] without the space not <code>
 
Upvote 0
Top