google-play-games

Android - Google Play Service, Game Client, Run time Error

♀尐吖头ヾ 提交于 2019-12-08 02:49:26
I have checked a few different questions already like this I am trying to implement a Google sign in and have been referring to https://developers.google.com/games/services/training/signin/ but cannot figure out how to resolve this error I currently have the following meta data in my Manifest file <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="@string/app_id" /> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/> My LogCat error looks like: - 04-01 15:25:28.461: E/AndroidRuntime(30017): FATAL EXCEPTION:

Is it senseful and legal to use Google Play Game Services for Non-Game-Apps?

老子叫甜甜 提交于 2019-12-07 17:54:27
问题 Is it senseful and legal to use Google Play Game Services for anything else than a game? I think an app that can upload images could have leaderboards (weekly likes) and achievements. Or a language learning app could also use these features to make the learning process more fun. Why are there no apps using these features? Is it not allowed? Or is the problem, that the app would be listed as a game in the Play Store, even if it is not a game? Will Google ban such apps? 来源: https:/

how to connect to google play service and load leaderboard

六眼飞鱼酱① 提交于 2019-12-07 14:11:43
问题 I want to connect my game with google play service. i have read documentation on android developer and try to following type-a-number sample and still can't load leaderboard. i have import baseGameUtils, but i use andengine so i didn't use extends BaseGameActivity from google. what i have until now: - GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) return success - startActivityForResult(pickAccountIntent, REQUEST_CODE_PICK_ACCOUNT); is working well and i got my account name from

AndEngine with Google Play game services

北慕城南 提交于 2019-12-07 03:54:54
问题 Im using AndEngine-GLES2-AnchorCenter and I want implement Google Play game services. I copied BaseGameActivity and GameHelper classes from BaseGameUtils (part of Google Play game services - Android Samples) to my project in same util package. Because AndEngine already use BaseGameActivity , I renamed it to GBaseGameActivity and changed extended class to BaseGameActivity (AndEngine class), so from this: public abstract class BaseGameActivity extends FragmentActivity to: public abstract class

How to use BaseGameActivity.getApiClient() in multiple activities?

守給你的承諾、 提交于 2019-12-07 03:01:31
问题 In my game app I would like the user to sign in to Google Play Services during the starting activity so I had it subclass BaseGameActivity . Then a separate activity is started for the game, at the end of which I want to update a leaderboard using Google Play Services, which requires calling BaseGameActivity.getApiClient() . How should I use Google Play services from a different activity than the one that subclasses BaseGameActivity ? Two options I thought of were: pass a reference to the

How to decide who is the first player when user plays quick game?

只谈情不闲聊 提交于 2019-12-07 01:09:10
问题 I am using following code in onRoomConnected(int statusCode, Room room) for deciding who is the first player. But some times I am getting first/second for both players same. How to resolve this error. if (quickGame) { myTurn = room.getParticipants().get(0).getParticipantId().equals(myId); } else { myTurn = room.getCreatorId().equals(myId); } if (myTurn) { Log.e(TAG, "First Player"); status.setText("Click a button to start"); } else { Log.e(TAG, "Second Player"); status.setText("Wait for

How to keep user in the game room even if activity loses focus

倾然丶 夕夏残阳落幕 提交于 2019-12-06 16:58:55
问题 By default when the user closes screen player leaves the room and when it opens the screen back user logs back in. I am extending BaseGameActivity and I start quick game on onSignInSucceeded. I want to keep the user in game even if the screen is closed, received a call etc. 1 . How can I achieve the desired behaviour? 2 . Am I misconfiguring something? 3 . Is this because of the way GameHelper is written? should I reimplement it? 回答1: Currently, you cannot keep the game running if the

Auth.GOOGLE_SIGN_IN_API cannot be used with Games.API

半城伤御伤魂 提交于 2019-12-06 16:30:59
I'm trying to connect GoogleApiClient with Games.API and Auth.GOOGLE_SIGN_IN_API (for getting User Profile Information). Getting this Error: java.lang.IllegalStateException: Auth.GOOGLE_SIGN_IN_API cannot be used with Games.API Code: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestProfile() .build(); googleApiClient = new GoogleApiClient.Builder(activity) .addConnectionCallbacks(connectionCallbacks) .addOnConnectionFailedListener(onConnectionFailedListener) .addApi(Games.API).addScope(Games.SCOPE_GAMES) .addApi(Auth.GOOGLE_SIGN_IN_API, gso

Web-based Multiplayer Board/Card game toolkit

喜欢而已 提交于 2019-12-06 15:24:55
问题 As a personal hobby, I would like to program a web-based card game with a few tokens and write an AI for it. I do not want to spend time and effort on standard elements such as maintaining a list of games and coordinating who's playing who, or even writing a login system (ideally I'd like to use Google accounts). My choice of programming language is flexible, but would prefer something I could run on Google app engine. I know Google Play Games provides some of the APIs but I was hoping for

Mixing Google Play games with Firebase

删除回忆录丶 提交于 2019-12-06 14:29:40
I added leaderboards to my android game using google games api. Now I wanted to add banner ads using the Firebase 'Wizard' of Android Studio. It builds fine, but when I try to create an apk, I get the following error: Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzqv; After using the wizard, my build.gradle file looks like this: apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "xxx" minSdkVersion 15 targetSdkVersion 22