从AppState API迁移到Saved Games API

时间:2016-07-04 00:34:47

标签: android

所以我试图对此代码进行一些修改,现在问题是应用程序拒绝连接到游戏服务并加载数据,因为它使用了旧的appstate api!现在我需要从旧的Appstate迁移到新的Saved Gamed API

Android Manifest

bindParam()

主菜单激活

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="maths.workout.jellyapp"
android:versionCode="4"
android:versionName="1.3" >

<uses-sdk
    android:minSdkVersion="9" 
    android:targetSdkVersion="17" />

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />


<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
     <activity
        android:name="com.arkay.funwithmaths.HomeMenuActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.Black.NoTitleBar" >
    </activity>

     <activity
        android:name="com.arkay.funwithmaths.SplashScreenActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.Black.NoTitleBar" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

     <activity
        android:name="com.arkay.funwithmaths.MultiPlayerPlayActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >
     </activity>


     <activity
        android:name="com.arkay.funwithmaths.SinglePlayerPlayFragment"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.Black.NoTitleBar" >
     </activity>

     <activity
        android:name="com.arkay.funwithmaths.SettingActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.Black.NoTitleBar" >
     </activity>

     <!-- <activity
        android:name="com.google.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /> -->
    <activity
        android:name="com.google.android.gms.ads.AdActivity"
        android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />

      <!-- Google Play Service -->
    <meta-data android:name="com.google.android.gms.version"
           android:value="@integer/google_play_services_version"/>

   <meta-data android:name="com.google.android.gms.appstate.APP_ID"
        android:value="@string/app_id" />

    <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" />



    <!-- End Google Play  -->
</application>

0 个答案:

没有答案