AS3 / AIR谷歌Play应用程序ID和扩展文件的访问 [英] AS3 / AIR Google Play application id and expansion files access

查看:202
本文介绍了AS3 / AIR谷歌Play应用程序ID和扩展文件的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了被称为main.1000000.com.mycompany.myapp.obb主膨胀文件链接的应用程序。我访问该文件以

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)

方法,这表明在Windows调试模式下,该文件存在。但上传到谷歌播放后,我注意到两个问题:

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

1)应用程序ID已被更改以preFIX的空气。,所以它现在是air.com.mycompany.myapp

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

2)应用程序找不到扩展文件下载成功地沿。

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

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

在设备上返回类似"/data/data/air.com.mycompany.myapp/com.mycompany.myapp/LocalStore/main.1000000.com.mycompany.myapp.obb"这是奇怪的,因为没有的.air preFIX应用程序ID,然后用。

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.

我真的不知道我缺少什么,或者这就是问题所在,所以可能有人请给我和建议我应该与resolvePath方法用什么参数来解决呢?

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?

推荐答案

安卓/ OBB在documentsDirectory而不是在应用程序存储目录

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

这篇关于AS3 / AIR谷歌Play应用程序ID和扩展文件的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆