GameView usage and crashing

choffi

Member
Licensed User
Longtime User
Hi

I launched my game on the Google Play store yesterday. It's a puzzle game where balls with numbers appear in a grid and the player has to get them to add up to 10 in different directions.

I have a bit of a problem though. I got some people to help me test it prior to release and for most of them it worked fine but one of them noticed it kept crashing. In the end I could only put that down to her running an older version of Android (2.3.3). Since then someone who downloaded the trial version also noticed it crashing. He is on Android 2.3.5.

I am wondering if that is to be expected as I am using GameView? I have taken out the check for hardware acceleration although I have put the line:

SetApplicationAttribute(android:hardwareAccelerated, "true")

in the manifest. But am I right in understanding the acceleration is only available in versions of Android from 3.0 onwards. Could that explain the crashing problem?

The structure of the game uses the GameView for everything. It is initialised and then every time I want to do something (e.g. show start screen, high scores screen, help wizard, main game screen refresh due to user action) I refresh the background, clear the BitmapData, draw on the canvas, add all the bitmaps (if necessary e.g. for the balls in the game) and invalidate. Does this sound right? It certainly works fine on my Galaxy Note II running Android 4.3 and as I say on plenty of other people's machines who have tested it.

Is it likely I have done something wrong structurally that is causing the crashing? Or might I need to restrict the versions that can run the game to >= Android 3.0?

Any help would be appreciated.

For into the links to the 2 versions of the game on the store are here:

https://play.google.com/store/apps/details?id=tens.game.free
https://play.google.com/store/apps/details?id=tens.game

Thanks

Mark.
 
Top