Log in or register to post comments

Application.streamingAssetsPath returns incorrect path

December 19, 2014 - 2:40am #1

I have a problem with exported Android application which uses "Split application binary" option. I'm trying to copy dataset-files from obb to persistent storage as described here:

https://developer.vuforia.com/forum/faq/unity-how-can-i-handle-large-android-apps

But, in my situation Application.streamingAssetPath returns incorrect path, which looks like this:

jar:file:///data/app/com.mycompany.myappname-1.apk!/assets/

Instead of path to real obb file.

Does anybody know why?

Application.streamingAssetsPath returns incorrect path

December 24, 2014 - 12:36am #2

Hi, on Android device, it is normal to get such path (starting with "jar:file:///...");   using the WWW class of Unity you should be able to extrct the files located under that path;

see this discussion on same topic:

http://stackoverflow.com/questions/8246917/how-to-access-unity-assets-natively-on-android-or-iphone

 

Log in or register to post comments