title: Google Play Game Services Using GameHelper without BaseGameActivity
body: <p>I want to add leaderboards in my game in android. I want to use the GameHelper without BaseGameActivity. I have followed the link below:</p>
  
  <p><a href="https://developers.google.com/games/services/android/init#using_gamehelper_without_basegameactivity" rel="nofollow">Using Game Helper Witout BaseGameActivity</a></p>
  
  <p>In my main activity I have done everything as stated on the link above.
  I have searched on internet on how the GameHelper works but have not found so much information or tutorials.</p>
  
  <pre><code>GameHelper mHelper;
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
  // create game helper with all APIs (Games, Plus, AppState):
  mHelper = new GameHelper(this, GameHelper.CLIENT_ALL);
  
  // enable debug logs (if applicable)
  if (DEBUG_BUILD) {
      mHelper.enableDebugLog(true, "GameHelper");
  }
  
  GameHelperListener listener = new GameHelper.GameHelperListener() {
      @Override
      public void onSignInSucceeded() {
          // handle sign-in succeess
      }
      @Override
      public void onSignInFailed() {
          // handle sign-in failure (e.g. show Sign In button)
      }
  
  };
  mHelper.setup(listener);
  }
  
  
      @Override
  protected void onStart() {
      super.onStart();
      mHelper.onStart(this);
  }
  
  @Override
  protected void onStop() {
      super.onStop();
      mHelper.onStop();
  }
  
  @Override
  protected void onActivityResult(int request, int response, Intent data) {
      super.onActivityResult(request, response, data);
      mHelper.onActivityResult(request, response, data);
  }
  </code></pre>
  
  <p>This is how I submit the scores:</p>
  
  <pre><code>public void submitScore(long score){
      Games.Leaderboards.submitScore(mHelper.getApiClient(), LEADERBOARD_ID, score);
      startActivityForResult(Games.Leaderboards.getLeaderboardIntent(mHelper.getApiClient(), LEADERBOARD_ID), REQUEST_LEADERBOARD);
  }
  </code></pre>
  
  <p>This is the errors I get.</p>
  
  <pre><code>04-17 20:56:23.268: W/dalvikvm(1942): threadid=1: thread exiting with uncaught exception (group=0x40fdb2a0)
  04-17 20:56:23.268: E/AndroidRuntime(1942): FATAL EXCEPTION: main
  04-17 20:56:23.268: E/AndroidRuntime(1942): java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at com.google.android.gms.internal.eh$h.b(Unknown Source)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at com.google.android.gms.internal.eh$h.a(Unknown Source)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at com.google.android.gms.internal.eh$b.ec(Unknown Source)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at com.google.android.gms.internal.eh$a.handleMessage(Unknown Source)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at android.os.Handler.dispatchMessage(Handler.java:99)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at android.os.Looper.loop(Looper.java:137)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at android.app.ActivityThread.main(ActivityThread.java:4921)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at java.lang.reflect.Method.invokeNative(Native Method)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at java.lang.reflect.Method.invoke(Method.java:511)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
  04-17 20:56:23.268: E/AndroidRuntime(1942):     at dalvik.system.NativeStart.main(Native Method)
  04-17 20:56:23.273: D/dalvikvm(1942): GC_CONCURRENT freed &lt;1K, 10% free 12510K/13895K, paused 11ms+19ms, total 42ms
  </code></pre>