[android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Davide Moriello
Hi, I have found the bug, the code that make crahs on android 2.3 is this Builder mGamesClienta = new GamesClient.Builder(context, this, this) .setGravityForPopups(Gravity.TOP | Gravity.CENTER_HORIZONTAL) .setScopes(mScopes); Any idea on how to make it work on android 2.3? thank

Re: [android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Mukesh Srivastav
Why not check for the OS version in run time and change your code accordingly. String androidOS = Build.VERSION.RELEASE; It is just a thought On Thu, Oct 3, 2013 at 5:19 PM, Davide Moriello davidem...@gmail.comwrote: Hi, I have found the bug, the code that make crahs on android 2.3 is this

[android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Nobu Games
That crash message says that there is further information in some additional log output. What does it say? On Thursday, October 3, 2013 5:21:44 AM UTC-5, Davide Moriello wrote: Hi, some testers are reporting me this error on some smartphone and I really don't know what it is and how to fix

Re: [android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Παύλος-Πέτρος Τουρνάρης
Well this is not random! While in the summer me and a friend developed a game with Play Services this occured when we added the game-id i think directly to the AndroidManifest! You have to add it in strings.xml and call it as a resource for example: @string/game-id, in your Manifest file! On

[android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Davide Moriello
They log I got from the play store console developer was only this :-( But luckily I just found a phone that has the same error and had more information on the logcat. The code now is: Builder mGamesClienta = new GamesClient.Builder(context, this, this) .setGravityForPopups(Gravity.TOP

Re: [android-developers] Re: Random IllegalStateException on some phone

2013-10-03 Thread Davide Moriello
No, it was not my problem =) I just had to add mGamesClienta.setViewForPopups(gameView); and it worked =) Yes, it was not random, I tought it was ranom becouse I had only reports from people. The error was only on android 2.3 Il giorno giovedì 3 ottobre 2013 16:35:28 UTC+2, Paul-Peter