title: Google Play Game Services and LibGDX, how to integrate without showing a title bar?
body: <p>Successfully connecting while using this code:</p>
  
  <p><a href="http://helios.hud.ac.uk/u1070589/blog/?p=202" rel="nofollow">Tutorial to add Google Play Services to LibGDX</a></p>
  
  <p>However, I now have the android title bar visible.  I have tried nailing down what exactly causes the title bar to show (and am using verbatim the code from the tutorial).  </p>
  
  <p>I think it is in having a MainActivity constructor in the mix, somehow, this bypasses the LibGDX calls that request noTitle.</p>
  
  <p>So, I tried next to add in the Theme feature of NoTitleBar in my Manifest, and that works, but somehow, I now have orientation changes occurring (which is not what it says in the manifest)</p>
  
  <p>Can anyone see what I need to do in either my Main project or Android project to </p>
  
  <p>1) not have a title bar
  2) not allow for orientation changes
  3) have the hookup for Google Play Services</p>
  
  <p>Here is the manifest:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="pgs.libgdx.liars.dice"
  android:versionCode="1"
  android:versionName="1.0" &gt;
  
  &lt;uses-sdk android:minSdkVersion="5" android:targetSdkVersion="17" /&gt;
  
  &lt;application
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name" &gt;
  
      &lt;meta-data android:name="com.google.android.gms.games.APP_ID"
          android:value="@string/app_id" /&gt;
  
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"
          android:theme="@android:style/Theme.NoTitleBar.Fullscreen" &gt;
          android:screenOrientation="landscape"
          android:configChanges="keyboard|keyboardHidden|orientation|screenSize"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Here is relevant code from Android Project:</p>
  
  <pre><code>public class MainActivity extends AndroidApplication implements GameHelperListener, GoogleInterface {
  
  private GameHelper aHelper;
  
  private OnLeaderboardScoresLoadedListener theLeaderboardListener;
  
  public MainActivity(){
      aHelper = new GameHelper(this);
      aHelper.enableDebugLog(true, "MYTAG");
  
      //create a listener for getting raw data back from leaderboard
      theLeaderboardListener = new OnLeaderboardScoresLoadedListener() {
  
          public void onLeaderboardScoresLoaded(int arg0, LeaderboardBuffer arg1,
                  LeaderboardScoreBuffer arg2) {
  
              System.out.println("In call back");
  
              for(int i = 0; i &lt; arg2.getCount(); i++){
                  System.out.println(arg2.get(i).getScoreHolderDisplayName() + " : " + arg2.get(i).getDisplayScore());
              }
          }
      };
  }
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
      cfg.useGL20 = false;
      aHelper.setup(this);
      initialize(new LiarsDiceGame(this), cfg);
  }
  </code></pre>
  
  <p>and the Main relevant code:</p>
  
  <pre><code>public LiarsDiceGame(){
  
  }
  
  public LiarsDiceGame(GoogleInterface anInterface ) {
      platformInterface = anInterface;
      //platformInterface.Login();
  }
  
  @Override
  public void create() {      
      float w = Gdx.graphics.getWidth();
      float h = Gdx.graphics.getHeight();
  
      camera = new OrthographicCamera(1, h/w);
      batch = new SpriteBatch();
  
      texture = new Texture(Gdx.files.internal("data/libgdx.png"));
      texture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
  
      TextureRegion region = new TextureRegion(texture, 0, 0, 512, 275);
  
      sprite = new Sprite(region);
      sprite.setSize(0.9f, 0.9f * sprite.getHeight() / sprite.getWidth());
      sprite.setOrigin(sprite.getWidth()/2, sprite.getHeight()/2);
      sprite.setPosition(-sprite.getWidth()/2, -sprite.getHeight()/2);
  }
  </code></pre>
  
  <p>Everything else is exactly as it when setting up a LibGDX project using the gdx-setup-ui.jar</p>