Android App crashing on one device only
Posted
by
Daniel1402
on Stack Overflow
See other posts from Stack Overflow
or by Daniel1402
Published on 2013-11-13T01:39:36Z
Indexed on
2013/11/13
3:54 UTC
Read the original article
Hit count: 147
I am working on a new game that works perfectly on my test devices, 7-inch tablets and smartphones. But it crashes on my Galaxy Tab2 10-inch tablet with an Out of memory error. It always crashes when I start to play a second game! I have spent a full week checking the codes and I cannot figure out what is wrong.
When I play from the menu screen, everything works fine. When I want to replay a game level from the level screen, the game will crash on the second launch. The level screen is made of 3 fragments, each with 32 buttons (4kB in size). I tried to keep only one fragment in memory with viewPager.setOffscreenPageLimit(1); but it does not solve the problem.
Could someone stir me in some direction as to where to look for the potential problem? Why is the 10-inch tablet the only one to crash?
Thanks.
© Stack Overflow or respective owner