Cannot Download files to Android device (v5.3.5f1)
I am trying to Download an 300mb mp4 onto an Android phone, but the video doesn't seem to download and I feel like I've tried every solution that's on the internet.
Why isn't this working?
Here's what I've tried so far:
1) Changing the Write Access
to External (SDCard)
. Here's my Player Settings:
2) Using Application.persistentDataPath
. Unfortunately when the app is on the Android, I cannot check the value of Application.persistentDataPath
. On my mac, Application.persistentDataPath = ""
, but I assume this changes on the Android.
3) My AndroidManifest.xml
file in /Temp/StagingArea/
has
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
4) Write now I am getting the published game onto the Android by Building it and using a File Transfer tool to port it over to the Android Device. Not sure if this makes a difference.
5) I tried changing the "jar:file://" + Application.dataPath + "!/assets/"
according to the answer here(http://answers.unity3d.com/questions/1107092/help-writing-and-reading-files-on-android.html) and I've even tried altering that solution to use Application.persistentDataPath
Many thanks for any help given. I will be responsive as quickly as possible
[2]: /storage/temp/74917-screenshot-2016-07-27-115208.png
Answer by 2b_ · Oct 10, 2017 at 06:24 PM
I bet you resolved this like a year ago. I'm having the same issue now. What did you do?