title: create a listview with LayoutGameActivity
body: <p>I extend LayoutGameActivity to create a list view into andengine. But got error</p>
  
  <blockquote>
    <p>E/AndroidRuntime(8719): 
    java.lang.RuntimeException: 
    Unable to start activity ComponentInfo{com.example.jumper.game/com.ex.listview.ListViewTestActivity}: java.lang.NullPointerException 
    <br>E/AndroidRuntime(8719): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1968)</p>
  </blockquote>
  
  <p>My activity_main.xml looks:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent" &gt;
  
      &lt;ListView
          android:id="@+id/id_list_view"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>My Activity looks like:</p>
  
  <pre><code>public class ListViewTestActivity extends LayoutGameActivity {
  
  public Camera camera;
  private ResourcesManager resourcesManager;
  public final static int CAMERA_WIDTH = 1280;
  public final static int CAMERA_HEIGHT = 720;
  public ListView aListView;
  @Override
  public EngineOptions onCreateEngineOptions() {
  
      camera = new Camera(0, 0, 1280, 720);
      EngineOptions engineOptions = new EngineOptions(true,
              ScreenOrientation.LANDSCAPE_FIXED, new FillResolutionPolicy(),
              this.camera);
      engineOptions.getAudioOptions().setNeedsMusic(true).setNeedsSound(true);
      engineOptions.setWakeLockOptions(WakeLockOptions.SCREEN_ON);
      return engineOptions;
  
  }
  @Override
  public void onCreateResources(
          OnCreateResourcesCallback pOnCreateResourcesCallback)
          throws Exception {
  }
  @Override
  public void onCreateScene(OnCreateSceneCallback pOnCreateSceneCallback)
          throws Exception {
  
      this.mEngine.registerUpdateHandler(new FPSLogger());
      final Scene scene = new Scene();
  
      aListView = (ListView) findViewById(R.id.list_view);
      String[] items = new String[] { "Item 1", "Item 2", "Item 3" };
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
              android.R.layout.simple_list_item_1, items);
      aListView.setAdapter(adapter);
  
      pOnCreateSceneCallback.onCreateSceneFinished(scene);
  }
  
  @Override
  public void onPopulateScene(Scene pScene,
          OnPopulateSceneCallback pOnPopulateSceneCallback) throws Exception {
  
      pOnPopulateSceneCallback.onPopulateSceneFinished();
  }
  
  @Override
  protected int getLayoutID() {
  
      // my xml layout
      return R.layout.activity_main;
  }
  
  @Override
  protected int getRenderSurfaceViewID() {
  
      return 0;
  
  }
  </code></pre>
  
  <p>}</p>