google-play-games

Calling Google Play Game Services from a fragment

岁酱吖の 提交于 2019-12-17 20:26:59
问题 I have implemented some Google Play Game Services features in my Android app as a separate Activity and I am now trying to rewrite my code as an (Action Bar Sherlock) fragment. I am using the supplied GameHelper code in my fragment. An auto sign in works correctly. A user initiated sign in fails because the StartResolutionForResult call in GameHelper returns to the Activity's onActivityResult rather than to the fragment. I have verified all this by using Log.D . My understanding of this is

Google Games APIs requires games_lite function

妖精的绣舞 提交于 2019-12-13 16:57:26
问题 I work with Google Play Games Services. I took the code from the official example. Try with API 27 and with API 17. All works only under one account (owner Google Developer Console), under any other - no. I get this: E/AndroidRuntime: FATAL EXCEPTION: GoogleApiHandler java.lang.IllegalStateException: Games APIs requires https://www.googleapis.com/auth/games_lite function. at com.google.android.gms.common.internal.zzbq.zza(Unknown Source) at com.google.android.gms.games.internal

Android Game Leader Board: Where to extends BaseGameActivity?

无人久伴 提交于 2019-12-13 05:57:46
问题 My activity_main_layout has 2 buttons: //Start game on click <Button android:id="@+id/btnStart"/> //If not sign in Google Game play Service //Sign in then show leader board on click <Button android:id="@+id/btnLeader board" /> Click on btnStart to begin playing game: btnStart.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // Perform action on click Intent intent = new Intent(MainActivity.this, game_play.class); startActivity(intent); finish(); } }); As you can

How should I deal with adding new incremental achievements

允我心安 提交于 2019-12-13 03:49:18
问题 I am just now becoming more familiar with how achievements in Google Play Games Services work. Here's a generic example that I'm trying to figure out how I will deal with. I have these achievements: Kill 5 Zombies, Kill 15 Zombies, 25, 50, etc. Right now, I plan to increment each achievement when a zombie is killed. So kill 1 zombie and all 4 achievements are incremented by 1. My question is, when I add another achievement (kill 100 zombies, for example) its incremental counter will start at

Google Play Games doesn't work with app published in PlayStore

自闭症网瘾萝莉.ら 提交于 2019-12-13 03:19:22
问题 so i built an app and implemented Leaderboards with Google Play Games Services. If i install the app via adb, the service functions as intended. If i install the app via the PlayStore, as Release, Beta, Alpha or internal test, i cannot use the services. Logcat doesn't give me any errors. If i want to check the Leaderboard it just says Hmm, something went wrong im Play Games. So most of the pages in the internet say that i should clear my cache, or i have a wrong sha1-key configured. First

clueless why app is get force closed on GoogleApiClient.connect()

我怕爱的太早我们不能终老 提交于 2019-12-13 02:50:26
问题 the app force closes on calling GoogleApiClient.connect() method, atleast if it doesn't connect it should call onConnectionFailed, but dont know why my app is getting force closed. when i comment GoogleApiClient.connect() method it doesn't force close........ trying from hours together . this is my code package com.playservices.murali.playservices; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view

Google Play Game Services REST api Snapshot load/commit

流过昼夜 提交于 2019-12-13 00:12:09
问题 Anyone know if it is possible to load/commit snapshot through the Google Play Game Services REST api? Im using this documentation: https://developers.google.com/games/services/web/api/snapshots But it only seems to allow fetching Snapshots metadata. Thanks. 回答1: One of the fields of the metadata is driveId. This is the id to pass to the Drive API to read the data. See https://developers.google.com/drive/v2/reference/files/get for the API information for get. 来源: https://stackoverflow.com

google play game realtime multiplayer how to get quickmatch player's name?

坚强是说给别人听的谎言 提交于 2019-12-12 14:11:06
问题 i am trying to use google API to make my realtime multiplayer game. I noticed that everytime the players play with each other using the "random match" option, their IDs are different from their actual google IDs... Is there a way to retrieve their actual google IDs on random match and to not use these strange IDs? 回答1: As far as I have found you can't for auto-match. From - https://developers.google.com/games/services/android/realtimeMultiplayer#quick_game_option However, to preserve

Google Play Game Services : Debug AND Release certificate

十年热恋 提交于 2019-12-12 12:20:56
问题 After much screaming and tearing of hair I have finally gotten In-App billing and Play Services sign in to work in my Android application - kind of. Google should really be ashamed of themselves, the process has been gruelling to put it mildly. One example of extremely important information that is mentioned kind of like an afterthought on the tutorial pages: "You must create the new client ID in the Google Play Developer Console, not in the Google Developers Console." I have now reached the

Google Play Leaderboards Not Showing Up

你。 提交于 2019-12-12 12:16:42
问题 So I'm trying to implement Google Games Leaderboards into an AS3 game. As near as I can tell, game services is all set up appropriately. Achievements and in-app purchases are already functioning properly. I have all my leaderboard set up in the developer console and I don't see anything obvious wrong with them. I know the leaderboard IDs have been properly implemented into my code. According to the console, I've even managed to successfully submit some scores to said leaderboards. However my