title: Android game will not display scene2d stage on phone
body: <p>I'm practicing making a game for android, using libgdx in Eclipse. In my first screen I add a TextButton and a Label to my stage. When I launch the desktop application the stage is displayed with the label and the button. However when I launch the Android application on my phone(Android 2.2) or emulator(Andorid 2.2 and 4.03), nothing is displayed only a blank screen. There are no errors that I can see in the logcat or console. </p>
  
  <p>The logcat displays a copybit "Error opening frame buffer errno=13 (Permission denied)", however I don't think this is the cause.</p>
  
  <p>I've checked my java build path and everything seems fine. After googling everywhere this is the only similar post I have found : <a href="https://stackoverflow.com/questions/11346331/libgdx-game-not-working-in-android-phones">libgdx game not working in android phones</a>.
  On the most voted answer user 'nEx.Software' comments "By not working do you mean just showing a blank screen? That's because the Desktop starter creates a new instance of ScreenTest(), while the Android starter creates a new instance of ScreenGame()." I think this could solve my problem however I don't fully understand his/her comment.</p>
  
  <p>Below is the code for my android starter class:</p>
  
  <pre><code>public class MainActivity extends AndroidApplication {
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          AndroidApplicationConfiguration cfg = new AndroidApplicationConfiguration();
          cfg.useGL20 = true;
          cfg.useAccelerometer = false;
          cfg.useCompass = false;
  
          initialize(new FirstGame(), cfg);
      }
  }
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <p>Below is the code for my games Main.java class:</p>
  
  <pre><code>public class FirstGame extends Game {
  
      @Override
      public void create() {  
          this.setScreen(new MainMenu(this));
      }
          @Override
      public void dispose() {
      }
  
      @Override
      public void resize(int width, int height) {
      }
  
      @Override
      public void pause() {
      }
  
      @Override
      public void resume() {
      }
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated. </p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I figured out that it was displaying on my phone, however the stage was off-screen, thanks anyway</p>