Esempio n. 1
0
 @Deprecated
 public void enableDebugLog(boolean enabled, String tag) {
   Log.w(
       TAG,
       "GameHelper.enableDebugLog(boolean,String) is deprecated. "
           + "Use GameHelper.enableDebugLog(boolean)");
   enableDebugLog(enabled);
 }
Esempio n. 2
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);
 }
Esempio n. 3
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);
  }
 protected void enableDebugLog(boolean enabled, String tag) {
   mHelper.enableDebugLog(enabled, tag);
 }