question

Andrey Yunoshev avatar image
Andrey Yunoshev asked

Compressed resources - difference between submitted and live build

Hello, I have follow simple code for play mp3 from app apk final AssetFileDescriptor assetFileDescritor = this.mContext.getAssets().openFd(pPath); mediaPlayer.setDataSource(assetFileDescritor.getFileDescriptor(), assetFileDescritor.getStartOffset(), assetFileDescritor.getLength()); Its work - on all android deiveces, work - on android devices in live on Play Market, work - if I run amazon app build (which I upload to submit) for any kindle devices. But in live, if I download app from store I saw follow exception - D/Cocos2dxMusic( 8133): createMediaplayerFromAssets: static/data/sounds/start_fight.mp3 E/Cocos2dxMusic( 8133): error: This file can not be opened as a file descriptor; it is probably compressed E/Cocos2dxMusic( 8133): java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed E/Cocos2dxMusic( 8133): at android.content.res.AssetManager.openAssetFd(Native Method) E/Cocos2dxMusic( 8133): at android.content.res.AssetManager.openFd(AssetManager.java:331) E/Cocos2dxMusic( 8133): at org.cocos2dx.lib.Cocos2dxMusic.createMediaplayerFromAssets(Cocos2dxMusic.java:172) Please, any idea why its happens? Normaly its happens if we try load compressed resources from apk - but here is mp3, mp3 files not compressed in apk. And again on my build its work well, problem only in live build. Possible its happens becouse I switch on Amazon DRM options? May be its force repack apk - and put all asserts include mp3 as compressed? Regards, Andrey
fire tablet
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Bipin@Amazon avatar image
Bipin@Amazon answered
Hi Andrey, As this is specific to particular application, we need to analyze and debug in detail.Please login to the account where you have submitted the apk to amazon and raise the contact us with details link: https://developer.amazon.com/help/contactus.html
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.