예제 #1
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   gameHelper = new GameHelper(this, GameHelper.CLIENT_GAMES);
   gameHelper.enableDebugLog(true);
   AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
   game = new Game(this);
   initialize(game, config);
   gameHelper.setup(this);
 }
예제 #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    //		 Create the GameHelper
    _gameHelper = new GameHelper(this, GameHelper.CLIENT_GAMES);
    _gameHelper.enableDebugLog(false);

    GameHelperListener gameHelperListener =
        new GameHelper.GameHelperListener() {

          @Override
          public void onSignInSucceeded() {
            // TODO Auto-generated method stub

          }

          @Override
          public void onSignInFailed() {
            // TODO Auto-generated method stub

          }
        };

    _gameHelper.setup(gameHelperListener);

    //		signIn();

    Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
    serviceIntent.setPackage("com.android.vending");
    bindService(serviceIntent, mServiceConn, Context.BIND_AUTO_CREATE);
    //		queryPurchases();

    AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
    config.useImmersiveMode = true;
    initialize(new Runners(this), config);
  }
예제 #3
0
 @Override
 protected void onCreate(Bundle b) {
   super.onCreate(b);
   mHelper = new GameHelper(this);
   mHelper.setup(this, mRequestedClients, mAdditionalScopes);
 }