AS3 / AIR Google Play application id and expansion files access

懵懂的女人 提交于 2019-12-11 14:36:09

问题


I developed an app linked with main expansion file called "main.1000000.com.mycompany.myapp.obb". I access this file with the

File.applicationStorageDirectory.resolvePath('Android/obb/' + FILENAME)

method which indicates in debug mode on Windows, that the file exists. But after uploading to Google Play I noted two problems:

1) Application id has been altered with prefix "air.", so it is now "air.com.mycompany.myapp"

2) Application cannot find the expansion file sucessfully downloaded along.

File.applicationStorageDirectory.resolvePath('Android/obb/' + FILENAME).nativePath

on the device returns something like "/data/data/air.com.mycompany.myapp/com.mycompany.myapp/LocalStore/main.1000000.com.mycompany.myapp.obb" which is weird, because there is app id without the .air prefix and then with.

I really don't know what am I missing or if this is the problem, so could someone please give me and advice what parameter should I use in resolvePath method to solve it?


回答1:


"Android/obb" is in the documentsDirectory and not in the application storage directory



来源:https://stackoverflow.com/questions/13782703/as3-air-google-play-application-id-and-expansion-files-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!