We have submitted an application on Amazon Market, the uploaded .apk working perfectly on other Devices and my KFTT as well but when we or other users are downloading the app from Amazon Market it is causing OutofMEmoryError. We have used 1024X1024 as well as 2048X2048 sprite sheet in out game.
When we install the .apk manually it never crash but it always gets crash when we run it after downloading it from Amazon market. can someone please tell us what could the reason for it and how to tackle with it?
java.lang.OutOfMemoryError
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:483)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:549)
at com.finoit.androidgames.framework.gl.Texture.load(Texture.java:42)
at com.finoit.androidgames.framework.gl.Texture.(Texture.java:30)
at com.finoit.androidgames.tapafish.Assets.load(Assets.java:458)
at com.finoit.androidgames.tapafish.FishTank.onSurfaceCreated(FishTank.java:23)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1446)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)